This file contains hidden or 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
| http://example.com/#my-unique-id |
This file contains hidden or 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 me in | |
| add_action('wp_enqueue_scripts', 'my_select_dropdown'); | |
| function my_select_dropdown() { | |
| if( is_shop() || is_product_category() ) { | |
| wp_enqueue_style( 'select2'); | |
| wp_enqueue_script( 'selectinit', get_stylesheet_directory_uri() . '/js/select2-init.js', array( 'selectWoo' ), '1.0.0', true ); |
This file contains hidden or 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 this if already open! | |
| /** | |
| * Code goes in theme functions.php. | |
| */ | |
| add_filter( 'woocommerce_product_subcategories_args', 'custom_woocommerce_product_subcategories_args' ); | |
| function custom_woocommerce_product_subcategories_args( $args ) { | |
| $args['exclude'] = get_option( 'default_product_cat' ); | |
| return $args; |
This file contains hidden or 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
| /** | |
| * Makes a BB Column clickable. | |
| * Pre-requisite: There must be an A Tag contained within the column element. | |
| */ | |
| (function($){ | |
| // Exit if BB layout is in edit mode. | |
| if ( 'undefined' != typeof window.FLBuilderConfig ) { | |
| return; | |
| } | |
This file contains hidden or 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 again | |
| // Save Time? Consider a donation via PayPal @ me@christinacreativedesign.com | |
| add_action( 'wp_head', 'childprefix_beaver_builder_modifications', 0 ); | |
| /* | |
| * Beaver Builder Builder Enabled Modifications |
This file contains hidden or 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
| jQuery(document).ready(function($){ | |
| if ( typeof window.FLBuilderConfig === 'undefined' || window.FLBuilderConfig === null ) { | |
| $('header.fl-builder-content').addClass('fl-sticky-on-mobile') | |
| } | |
| }); | |
| /** | |
| * The CSS for fl-sticky-on-mobile | |
| @media (max-width:992px){ |
This file contains hidden or 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 | |
| // Recommended for BB | |
| define('WP_MEMORY_LIMIT', '512M'); | |
| define('FL_BUILDER_MODSEC_FIX', true); | |
| // Enable Debugging | |
| define('WP_DEBUG', true); | |
| define('WP_DEBUG_LOG', true); | |
| // Etc |
This file contains hidden or 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 | |
| function remove_page_header_for_builder() { | |
| if( is_page_template( 'template-builder.php' ) ) { | |
| remove_action( 'storefront_page', 'storefront_page_header' ); | |
| } | |
| } | |
| add_action( 'storefront_page_before', 'remove_page_header_for_builder' ); |