Last active
December 20, 2015 12:09
-
-
Save braddalton/6128738 to your computer and use it in GitHub Desktop.
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
/** | |
* @author Brad Dalton WP Sites | |
* @link http://wpsites.net/blog | |
*/ | |
add_action( 'genesis_before_post_title', 'reposition_portfolio_image' ); | |
function reposition_portfolio_image() { | |
if (is_front_page() && has_post_thumbnail() ) { | |
echo '<div class="portfolio-featured-image">'; | |
echo '<a href="' . get_permalink() .'" title="' . the_title_attribute( 'echo=0' ) . '">'; | |
echo get_the_post_thumbnail($thumbnail->ID, 'portfolio' ); | |
echo '</a>'; | |
echo '</div>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment