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 me in | |
add_action( 'after_setup_theme', 'bt_theme_setup', 15 ); | |
/** | |
* Beavertron theme set up | |
* | |
* @since 1.0.0 | |
*/ | |
function bt_theme_setup() { |
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
/* # Overlay | |
---------------------------------------------------------------------------------------------------- */ | |
.admin-bar .overlay { | |
top: 150px; /* Header + admin bar - in this case 128px + 32px */ | |
} | |
/* See the Overlay in BB editing mode */ | |
.fl-theme-layout-template-default .overlay { |
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($){ | |
/** | |
* Helper class for header layout logic. | |
* | |
* @since 1.0 | |
* @class FLThemeBuilderHeaderLayout | |
*/ | |
FLThemeBuilderHeaderLayout = { |
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 me in | |
add_filter( 'woocommerce_short_description', 'prefix_filter_woocommerce_short_description' ); | |
/** | |
* Limit WooCommerce Short Description Field | |
*/ | |
function prefix_filter_woocommerce_short_description( $post_post_excerpt ) { | |
// make filter magic happen here... | |
if(! is_product() ) { // add in conditionals | |
$text = $post_post_excerpt; |
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 | |
add_filter( 'fl_builder_loop_query_args', 'prefix_fl_builder_loop_query_args_filter' ); | |
/** | |
* Filter Beaver Builder Loop in Modules - to output a certain Taxonomy | |
* @since 1.0.0 | |
*/ | |
function prefix_fl_builder_loop_query_args_filter( $query_args ) { | |
if ( 'id-goes-here' == $query_args['settings']->id ) { // Set an ID in module |
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 | |
add_action( 'wp_enqueue_scripts', 'prefix_in_browser' ); | |
/** | |
* Enqueuing Stick it with Waypoints | |
*/ | |
function prefix_in_browser() { | |
wp_enqueue_script( 'waypoints', get_stylesheet_directory_uri() . '/js/jquery.waypoints.min.js', array( 'jquery' ), '4.0.1', true ); | |
wp_enqueue_script( 'sticky', get_stylesheet_directory_uri() . '/js/sticky.min.js', array( 'waypoints' ), '1.0.0', true ); | |
wp_enqueue_script( 'waypoints-init', get_stylesheet_directory_uri() . '/js/waypoints.init.js', array( 'sticky' ), '1.0.0', true ); |
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 | |
add_action( 'wp_enqueue_scripts', 'prefix_in_browser' ); | |
/** | |
* Enqueuing Waypoints & CSS Animate | |
* | |
*/ | |
function prefix_in_browser() { | |
wp_enqueue_script( 'waypoints-init', get_stylesheet_directory_uri() . '/js/waypoints.init.js', array( 'waypoints' ), '1.0.0', true ); | |
wp_enqueue_script( 'waypoints', get_stylesheet_directory_uri() . '/js/jquery.waypoints.min.js', array( 'jquery' ), '4.0.1', true ); |
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($){ | |
$(function() { | |
clickColumn(); | |
}); | |
/* | |
* Make a BeaverBuilder Column clickable. |