Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Display featured image above single post title in Genesis. Source: http://ryantownley.com/display-featured-image-before-single-post-title-in-genesis/
<?php
//* Display featured image above single post title in Genesis
function prefix_display_featured_image_above_title() {
if (!is_singular('post')) return;
the_post_thumbnail('medium'); // medium resolution (default 300x300 pixels max)
}
add_action('genesis_entry_header', 'prefix_display_featured_image_above_title', 8);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment