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 | |
| /* | |
| Template Name: Beaver Builder Page | |
| */ | |
| //* Force full width content | |
| add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
| //* Remove the breadcrumb | |
| remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); |
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
| a img { | |
| margin-bottom: 0; | |
| } | |
| .site-title a img { | |
| vertical-align: top; | |
| } |
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 the opening php tag | |
| add_action( 'genesis_after_header', 'sk_change_genesis_primary_sidebar' ); | |
| /** | |
| * Show a 'blog-posts' custom widget area in Primary Sidebar location | |
| * | |
| * Context: All single Post pages that belong to a specific 'blog' category. | |
| * | |
| * @author Sridhar Katakam |
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 | |
| /** | |
| * Display 3 Posts having Featured images from Featured category and display in columns. | |
| */ | |
| add_action( 'genesis_after_header', 'sk_display_featured_posts' ); | |
| function sk_display_featured_posts() { | |
| echo '<div class="home-featured-posts"><div class="wrap">'; |
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 the opening php tag | |
| add_filter( 'genesis_attr_content', 'custom_attributes_content' ); | |
| /** | |
| * Add the class needed for FacetWP to main element. | |
| * | |
| * Context: Posts page, all Archives and Search results page. | |
| * | |
| * @author Sridhar Katakam |
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 the opening php tag | |
| add_shortcode( 'post_category', 'sk_show_the_first_category_name_only' ); | |
| /** | |
| * Custom shortcode that returns the first hyperlinked category that entry belongs to | |
| * | |
| * @author Sridhar Katakam | |
| * @link http://codex.wordpress.org/Function_Reference/get_the_category#Show_the_First_Category_Name_Only | |
| */ |
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 the opening php tag | |
| //* Activate After Entry widget area and display it on single Posts | |
| add_theme_support( 'genesis-after-entry-widget-area' ); |
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 the opening php tag | |
| //* Enqueue jQuery Stick 'em on non handhelds and single Posts | |
| add_action( 'wp_enqueue_scripts', 'jquery_stickem' ); | |
| function jquery_stickem() { | |
| if ( ! ( ! wp_is_mobile() && is_singular( 'post' ) ) ) { | |
| 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 | |
| //* Do NOT include the opening php tag | |
| //* Enqueue jQuery Stick 'em on non handhelds | |
| add_action( 'wp_enqueue_scripts', 'jquery_stickem' ); | |
| function jquery_stickem() { | |
| if ( wp_is_mobile() ) { | |
| 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 | |
| //* Do NOT include the opening php tag | |
| add_action( 'genesis_before_entry', 'sk_featured_image_above_title' ); | |
| /** | |
| * Display Featured Image above Post Titles regardless of Content Archives settings | |
| * | |
| * Scope: Posts page (Blog) | |
| * | |
| * @author Sridhar Katakam |