Display Featured Image WordPress Genesis Themes

32 Comments

  1. This was extremely helpful thanks. Is there equivalent code to show the featured image on every page?

  2. Hi there,
    Thanks for the Post, but I’m in quite a Fix!

    I’ve already got the below snippet in the functions.php file of my Child Theme, but still the Featured Image isn’t being Displayed on Posts.

    //* Add new image sizes
    add_image_size( ‘home-bottom’, 150, 150, TRUE );
    add_image_size( ‘home-middle’, 348, 180, TRUE );
    add_image_size( ‘home-top’, 740, 400, TRUE );

    Featured Images are getting loaded on the Home page but when the Post is opened the featured image ain’t getting displayed…

    Is there a way out to Fix this?

    Any help would be appreciated, Thanks.

    1. You might need to add the code required to make it appear on single posts.

      Add the code snippet in first section above to your functions.php file of the child theme.

  3. Perfect solution, works perfect. How would you show the image caption along with the featured image?

  4. Help, I did exactly what you explained it looked easy and now I am getting a message about a parse error. I did copy and paste the theme functions.php before I made the changes but still get same error message.

    1. That’s happened to me a number of times, it’s a pain, but the easiest solution is to delete the theme folder from your file manager and then upload it again. Start with a fresh copy of your theme. Since you’re using Genesis, absolutely nothing should be lost.

  5. Avatar of Prajjwal Rajput Prajjwal Rajput says:

    Thanks alot man, Great Work! 😉

  6. Hey, it worked great.
    I am not sure why my genesis stopped showing the featured image suddenly.
    But not its fixed. Thanks man

  7. Hi! how to make a Featured Image on Single Posts align center

    1. Hi Dimitris, If you are using a plugin, there should be an option under settings.

      1. I make it with the code

  8. Thank you! The plugin helped!

  9. I only want the featured image to display on single blog posts, not pages. How would I modify the code in featured_post_image to handle this?

    Thanks in advance!

  10. This was very helpful, i am wondering though, exactly where do i place the code? Or does anywhere work?

    1. It is usually a good idea to place the code towards the end of the file with a comment that you can recognize in future edits.
      //The first line is comment

  11. Yay! I added the code at the end of the file, and it worked! Thank you so much for your help..!

  12. I’e add the first code and now the image appears in my post. But after adding the second code, nothing changes. What’s the problem?

  13. Avatar of Alexander Alexander says:

    Thank you! Very helpful. Saw no way to give you a “Like” for this post 🙂

  14. Thank you for this code snippet to add the featured image to the single post page in Genesis/StudioPress’ Beautiful Pro theme.

    I’ve got it working however the featured image on the single post page is now appearing above the post title instead of below the post title.

    Also – the post title is being “smushed” a bit – it seems to be overlaid over the bottom of image on the single post page.

    Can you please tell me what I’m doing wrong?

    Thank you!

  15. Thank You for this informative guide. I was searching for showing my feature image on the home page but despite of lots of research, I couldn’t find it. But here I find it on this blog.
    Thank you again and keep posting. I just display the featured image on my home page and it looks awesome!

  16. Extremely useful, thanx a lot!

  17. Avatar of Randy Withers Randy Withers says:

    I want o thank you for this post. I went to a dozen other sites trying to find the solution to this problem, but you were the only one who solved it for me. Well done sir!

  18. Avatar of Farrukh Hassan Farrukh Hassan says:

    Hi there,
    If anyone not getting featured image after adding the above snippet can use this code to display featured images before the “post title”.
    /* Code to Display Featured Image on top of the post */
    add_action( ‘genesis_entry_header’, ‘featured_post_image’, 5 );
    function featured_post_image() {
    if (is_single( ‘[post-type]’ )) {
    global $post;
    echo get_the_post_thumbnail($post->ID); }
    }
    NOTE: you can change position of image (before or after) post title by simply changing the function priority.

  19. Thank you!! Gave me a super quick solution to what I thought it was going to take me ages to figure out!

  20. Avatar of Nnnanyere Nnnanyere says:

    Please, I have a Genesis template, and I have done everything possible to remove (unset) the featured image from my post, and it is not working. Is there a guide to that? Please

  21. Hi,

    Is this will work with Corporate Pro Theme?

Leave a Reply to Amanda Cancel reply

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