Skip to content

Instantly share code, notes, and snippets.

@jpmarchand
Last active November 6, 2015 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpmarchand/9ffbeaea54e293c770f9 to your computer and use it in GitHub Desktop.
Save jpmarchand/9ffbeaea54e293c770f9 to your computer and use it in GitHub Desktop.
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