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(function( $ ){ | |
| $( ".content .featured-image" ).each(function() { | |
| var featured_image = $(this).data( "featuredimage" ); | |
| $(this).backstretch([BackStretchImg]=featured_image,{duration:3000,fade:750}); | |
| }); | |
| }); |
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 even/odd post class for Posts in Posts page, Archives and Search results | |
| add_filter( 'post_class', 'sk_even_odd_post_class' ); | |
| function sk_even_odd_post_class( $classes ) { | |
| global $wp_query; | |
| if ( is_home() || is_archive() || is_search() ) { | |
| $classes[] = ($wp_query->current_post % 2 == 0) ? 'odd' : 'even'; | |
| } |
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
Show hidden characters
| { | |
| "config": { | |
| "exclude": [ | |
| ".git/**", | |
| "node_modules/**" | |
| ], | |
| "verbose": true, | |
| "always-semicolon": true, | |
| "block-indent": "\t", |
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
| /** | |
| * Grid Loop on 'Category 1' category archive | |
| * Customized by Sridhar Katakam | |
| * | |
| * @author Bill Erickson | |
| * @link https://github.com/billerickson/Genesis-Grid/wiki/Home | |
| * | |
| * @param bool $grid, whether to use grid loop | |
| * @param object $query, the WP Query | |
| * @return bool |
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_image_size( 'home-image', 400, 400, 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
| //* Register Horizontal Opt-In widget area | |
| genesis_register_sidebar( | |
| array( | |
| 'id' => 'horizontal-opt-in', | |
| 'name' => __( 'Horizontal Opt-In' ), | |
| 'description' => __( 'This is the widget area for horizontal opt-in form.' ), | |
| ) ); | |
| //* Display Horizontal Opt-In below Header | |
| add_action( 'genesis_after_header', 'sk_horizontal_opt_in' ); |
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
| npm install -g browser-sync |
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_meta', 'sk_post_meta_filter' ); | |
| /** | |
| * Customize entry meta in entry footer | |
| * | |
| * Context: Archive page and Singular pages of 'books' CPT. | |
| * | |
| * @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_action( 'pre_get_posts', 'sk_change_posts_per_page' ); | |
| /** | |
| * Set Posts Per Page on Handhelds (Tablets and Mobiles) | |
| * | |
| * Context: Posts 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
| <ul class="list"> | |
| <li><label><input type="checkbox" name="step1" value="Step 1"><span>Step 1</span></label></li> | |
| <li><label><input type="checkbox" name="step2" value="Step 2"><span>Step 2</span></label></li> | |
| </ul> |