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($) { | |
| $('.home-testimonials .testimonials').bxSlider({ | |
| minSlides: 1, | |
| maxSlides: 1, | |
| slideWidth: 800, | |
| }); | |
| }); |
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
| //* Function to display space separated (default) category slugs | |
| function the_category_unlinked( $separator = ' ' ) { | |
| $categories = get_the_category(); | |
| $thelist = ''; | |
| foreach( $categories as $category ) { // concatenate | |
| $thelist .= $separator . $category->category_nicename; | |
| } | |
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
| //* Remove the built-in Entry Footer markup | |
| remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 ); | |
| remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 ); | |
| add_action( 'genesis_entry_footer', 'sk_entry_footer_markup_open', 5 ); | |
| /** | |
| * Echo the opening structural markup for the entry footer. | |
| * | |
| * Context: Everywhere except on static Pages. | |
| * |
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
| //* Make Font Awesome available | |
| add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' ); | |
| function enqueue_font_awesome() { | |
| wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css' ); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'sk_sitewide_non_handhelds_scripts' ); | |
| /** |
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
| @media only screen and (max-width: 800px) { | |
| body { | |
| background: #f5f5f5;; | |
| } | |
| .entry { | |
| padding: 50px 60px; | |
| } | |
| .comment-respond, |
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( 'wp_enqueue_scripts', 'sk_enqueue_script_on_posts' ); | |
| function sk_enqueue_script_on_posts() { | |
| /** | |
| * Load a js file on Post pages and localize it with Post's data | |
| * | |
| * Context: Single Post pages | |
| * | |
| * @author Sridhar Katakam | |
| * @link http://sridharkatakam.com/ | |
| */ |
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_after_header', 'sk_mini_fixed_header' ); | |
| /** | |
| * Mini header with a logo image at left and menu at right. | |
| * | |
| * @author Sridhar Katakam | |
| * @link http://sridharkatakam.com/ | |
| */ | |
| function sk_mini_fixed_header() { ?> | |
| <div class="mini-header"> | |
| <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
| //* Register a custom image size for Featured images above entries on list pages | |
| add_image_size( 'archive-featured-image', 800, 300, true ); | |
| add_action( 'genesis_before_entry', 'sk_featured_image_above_posts' ); | |
| /** | |
| * Display Featured Image above Post Titles regardless of Content Archives settings | |
| * | |
| * Context: Posts page, all archives and search results pages. | |
| * | |
| * @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
| //* Register Home Optin widget area | |
| genesis_register_sidebar( array( | |
| 'id' => 'home-optin', | |
| 'name' => __( 'Home Optin', 'lifestyle' ), | |
| 'description' => __( 'This is the home opt-in form section.', 'lifestyle' ), | |
| ) ); | |
| add_action( 'genesis_after_header', 'sk_optin_below_header' ); | |
| /** | |
| * Display Home Optin 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
| //* Add new image size | |
| add_image_size( 'home-featured-image', 680, 0, true ); | |
| add_action( 'pre_get_posts', 'sk_set_posts_per_page_home' ); | |
| /** | |
| * Change Posts Per Page for Event Archive | |
| * | |
| * @author Bill Erickson | |
| * @link http://www.billerickson.net/customize-the-wordpress-query/ | |
| * @param object $query data |