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_theme_support( 'custom-header', array( | |
| 'header-selector' => '.site-header', | |
| 'header-text' => true, | |
| 'height' => 242, | |
| 'width' => 1080, | |
| ) ); |
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_post_info', 'sk_post_info_filter' ); | |
| /** | |
| * If a Post has at least 1 Byline, display all Bylines linking to their archive pages | |
| * Otherwise show the native WordPress Post's author. | |
| * | |
| * @author Sridhar Katakam | |
| * @link http://sridharkatakam.com/replace-display-author-using-byline-plugin-genesis/ |
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
| //* Add support for 3-column footer widgets | |
| add_theme_support( 'genesis-footer-widgets', 3 ); |
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: Sitemap | |
| */ | |
| //* Remove standard post content output | |
| remove_action( 'genesis_post_content', 'genesis_do_post_content' ); | |
| remove_action( 'genesis_entry_content', 'genesis_do_post_content' ); |
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 | |
| remove_action( 'wp_head', 'genesis_header_scripts' ); | |
| add_action( 'wp_head', 'sk_header_scripts' ); | |
| /** | |
| * Echo header scripts in to wp_head(). | |
| * | |
| * Allows shortcodes. | |
| * |
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 Foundation Interchnage | |
| add_action( 'wp_enqueue_scripts', 'sk_foundation_interchange' ); | |
| /** | |
| * Load Foundation and Foundation Interchange in the Footer. | |
| * Initialize Foundation in the Footer. | |
| * | |
| * @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
| $('.home-featured .wrap') .css({'height': (($(window).height()))+'px'}); | |
| $(window).resize(function(){ | |
| $('.home-featured .wrap') .css({'height': (($(window).height()))+'px'}); | |
| }); | |
| $(".home-featured .home-widgets-1 .widget:last-child").after('<p class="arrow"><a href="#home-widgets"></a></p>'); |
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
| add_action( 'genesis_entry_content', 'sk_do_post_content' ); | |
| function sk_do_post_content() { | |
| if ( has_post_thumbnail() ) { | |
| $image = genesis_get_image( 'size=portfolio' ); | |
| } else { | |
| $image = '<img src="' . get_stylesheet_directory_uri() . '/images/default-image.gif" />'; | |
| } | |
| echo '<div class="flip-container"> | |
| <div class="flipper"> |
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
| //* Add Facebook, Google+ and Twitter sharing buttons after header | |
| add_action( 'get_header', 'facebook_share_btn_sdk' ); | |
| function facebook_share_btn_sdk() { | |
| echo '<div id="fb-root"></div> | |
| <script>(function(d, s, id) { | |
| var js, fjs = d.getElementsByTagName(s)[0]; | |
| if (d.getElementById(id)) return; | |
| js = d.createElement(s); js.id = id; | |
| js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=357648750922513&version=v2.0"; |
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
| add_action( 'genesis_header', 'sk_remove_page_titles' ); | |
| /** | |
| * Remove Page Titles for specific Pages. | |
| * | |
| * @author Sridhar Katakam | |
| * @link http://www.sridharkatakam.com/remove-page-titles-selectively-centric-pro/ | |
| */ | |
| function sk_remove_page_titles() { | |
| $pages = array( 1149, 1306, 6, 24 ); |