eric c wagner

ramblings, musings, and WordPress

  • Home
  • About

September 7, 2014 by Eric Wagner Leave a Comment

Display Featured Image on top of Genesis Framework Posts

Here’s a snippet of code that I re-use often. It will display the post’s featured image above the content but under the entry title on the post page and the front page.

1
2
3
4
5
6
7
8
 
/* Display Featured Image on top of the post */
add_action( 'genesis_before_entry_content', 'featured_post_image', 8 );
function featured_post_image() {
  if ( ! is_singular( 'post' ) && ! is_front_page() )  return;
the_post_thumbnail('post-image');
}
 

Share this:

  • Twitter
  • Facebook
  • LinkedIn
  • Google
  • Pocket
  • Email

Filed Under: WordPress Tagged With: Genesis Framework

About Eric Wagner

Eric Wagner is the owner of Fifth Cup, a small, highly caffeinated web design and development agency in Portland Maine, and an enterprise technology executive whose passion is helping companies take advantage of technology.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Connect Online

  • LinkedIn
  • RSS
  • Twitter

Recent Posts

  • Apple Watch
  • Goodbye cable
  • Ford: Microsoft out, BlackBerry in
  • Making MAMP Apache work in OSX Yosemite
  • Display Featured Image on top of Genesis Framework Posts

Follow me on Twitter

My Tweets

Categories

  • Development
  • General
  • Joomla
  • Linux
  • Sales
  • Science
  • Tech Toys
  • Uncategorized
  • Web Hosting
  • WordPress

Tags

Amazon.com Apple Watch cache DigitalOcean Genesis Framework Infographic MAMP WordCamp Yoast

Website Design and Development

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Copyright © 2019 · ericcwagner.com

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.