This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//don't add above twice if it already exists | |
/** | |
* Check if WooCommerce Page of all kinds (not just cart and shop) | |
* @thanks: https://faish.al/2014/01/06/check-if-it-is-woocommerce-page/ | |
* Checked IDS with WooCommerce Repo 1 June 2019 | |
*/ | |
function ca_is_really_woocommerce_page() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return array( | |
'dependencies' => array( | |
'plugins' => array( | |
array( | |
'name' => __( 'Atomic Blocks', 'genesis-sample' ), | |
'slug' => 'atomic-blocks/atomicblocks.php', | |
), | |
), | |
), | |
'content' => array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (context, trackingId, options) { | |
const history = context.history; | |
const doc = document; | |
const nav = navigator || {}; | |
const storage = localStorage; | |
const encode = encodeURIComponent; | |
const pushState = history.pushState; | |
const typeException = 'exception'; | |
const generateId = () => Math.random().toString(36); | |
const getId = () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add genesis layout classes to the Block Editor. | |
// File lives in the theme's /js/ folder. | |
wp.domReady(function () { | |
yourTheme.updateLayoutClass(); | |
var layouts = document.querySelector(".genesis-layout-selector"); | |
if( layouts ) { | |
layouts.addEventListener("input", function (e) { | |
yourTheme.updateLayoutClass(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Style pagination to look like Genesis. | |
* | |
* @version 1.0.0 | |
* | |
* @author Mike Hemberger @JiveDig | |
* | |
* @link https://gist.github.com/JiveDig/b9810ba4c322d7757993159ed9ccb61f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Retrieves all post meta data according to the structure in the $config | |
* array. | |
* | |
* Provides a convenient and more performant alternative to ACF's | |
* `get_field()`. | |
* | |
* This function is especially useful when working with ACF repeater fields and | |
* flexible content layouts. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name | |
* | |
* @package Custom_Featured_Post_Widget | |
* @author Gary Jones | |
* @license GPL-2.0+ | |
* @link http://gamajo.com/ | |
* @copyright 2013 Gary Jones, Gamajo Tech | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* IDX Broker IMPress Property Showcase - Default style unchecked | |
* By https://github.com/mjsdiaz | |
----------------------------------------------------------------------------------------------- */ | |
.front-page-3 .impress-showcase-widget .widget-title { | |
color: #fff; | |
font-size: 60px; | |
font-size: 6rem; | |
font-weight: 300; | |
letter-spacing: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Search Bar IDX Broker IMPress Omnibar - Default style unchecked | |
* By https://github.com/mjsdiaz | |
----------------------------------------------------------------------------------------------- */ | |
.widget.IDX_Omnibar_Widget { | |
background-color: #566473; | |
color: #fff; | |
padding: 30px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//do not include the opening tag! | |
// Required Scripts and Styles | |
add_action( 'wp_enqueue_scripts', 'leaven_load_scripts', 15 ); | |
function leaven_load_scripts() { | |
// Responsive Navigation | |
wp_enqueue_style( 'fontawesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css', array(), '4.3.0' ); |
NewerOlder