Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //* Add new image sizes
- add_image_size('grid-thumbnail', 536, 150, TRUE);
- add_action ( 'genesis_entry_header', 'sk_show_featured_image_home' );
- function sk_show_featured_image_home() {
- if ( is_front_page() && has_post_thumbnail() ) {
- echo '<div class="home-thumbnail">' . '<a href="'.get_permalink().'">';
- genesis_image( array( 'size' => 'grid-thumbnail' ) );
- echo '</a></div>';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement