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
/* | |
Featured Pages instead of Featured Posts in Modern Portfolio | |
--------------------------------------------------------------- */ | |
#portfolio .featuredpage:nth-of-type(3n+0), | |
#portfolio .featuredpage:nth-of-type(3n+1), | |
#portfolio .featuredpage:nth-of-type(3n+2) { | |
width: 29.629629629%; /* 320px / 1080px */ | |
} |
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
add_action( 'genesis_before', 'genesis_do_subnav' ); |
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
<div class="home-bkgrd-image-overlay"> | |
<div class="wrap"> | |
<?php echo do_shortcode( '[home_bkgrd_image]' ); ?> | |
</div> | |
</div> |
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
wp_enqueue_script( 'minimum-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0' ); | |
wp_enqueue_script( 'minimum-backstretch-set', get_bloginfo('stylesheet_directory').'/js/backstretch-set.js' , array( 'jquery', 'minimum-backstretch' ), '1.0.0' ); | |
wp_localize_script( 'minimum-backstretch-set', 'BackStretchImg', array( 'src' => get_background_image() ) ); |
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
//* Add new image sizes | |
add_image_size('grid-thumbnail', 536, 150, TRUE); | |
add_image_size('single-thumbnail', 720, 250, 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
//* Add new image size | |
add_image_size('single-portfolio-thumbnail', 720, 0, TRUE); | |
add_action ( 'genesis_entry_header', 'sk_show_featured_image_portfolio_single' ); | |
function sk_show_featured_image_portfolio_single() { | |
if ( is_singular('portfolio') ) { | |
echo '<div class="single-portfolio-thumbnail">'; | |
genesis_image( array( 'size' => 'single-portfolio-thumbnail' ) ); | |
echo '</div>'; | |
} |
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
add_action( 'pre_get_posts', 'sk_show_titles_only_category_pages' ); | |
/** | |
* Show Linked Titles Only for Posts in Category Pages | |
* | |
* @author Sridhar Katakam | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/customize-the-wordpress-query/ | |
* @param object $query data | |
* | |
*/ |
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
//* Add new image size | |
add_image_size( 'singular', 680, 200, TRUE ); | |
add_action ( 'genesis_entry_header', 'sk_featured_image_title_singular' ); | |
function sk_featured_image_title_singular() { | |
if ( !is_singular() || !has_post_thumbnail() ) | |
return; | |
echo '<div class="singular-thumbnail">'; |
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
/** | |
* Filter Genesis H1 Post Titles to remove hyperlinks on Category pages | |
* | |
*/ | |
add_filter( 'genesis_post_title_output', 'sk_post_title_output', 15 ); | |
function sk_post_title_output( $title ) { | |
if( is_category() ) | |
$title = apply_filters( 'genesis_post_title_text', get_the_title() ); |
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
add_action( 'wp_enqueue_scripts', 'custom_enqueue_script' ); | |
function custom_enqueue_script() { | |
wp_enqueue_script( 'sticky-nav', get_stylesheet_directory_uri() . '/js/sticky-nav.js', array( 'jquery' ), '', true ); | |
} |