• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Seperate Picture for Post Thumbnail rather than using image from post – Minimum

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Seperate Picture for Post Thumbnail rather than using image from post – Minimum

This topic is: not resolved
  • This topic has 6 replies, 3 voices, and was last updated 13 years, 5 months ago by eluviis.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • February 19, 2013 at 2:44 am #21230
    rosstcorbett
    Member

    Hi,

    For my blog post thumbnail I would like to use a different picture than what is in the blog post.

    From what I understand, a thumbnail picture is created by taking the first photo from the Blog post.

    How can I use a different photo for the post thumbnail?

    Thanks.

    Ross

    WW2 Discovery

    February 19, 2013 at 5:35 am #21257
    Peter
    Member

    Hi Ross.

    Just a quick guess here, but have you tried adding featured images to your posts? I think featured image images take precedence over images in the post content for the thumbnails..

    February 19, 2013 at 5:41 am #21258
    rosstcorbett
    Member

    Hi Peter,

    Yes I have tried that but when doing this the featured image then also appears in the blog post.

    I have recently swapped over from using Thesis, there was a very simple way of doing it on there and I am sure there must also be a simple way of doing it using Genesis.

    Just need to find out how 🙂

     

    February 19, 2013 at 5:59 am #21261
    Peter
    Member

    Ah.. I just checked.. do you mean the featured image which appears above the post title on single posts?

    February 19, 2013 at 6:05 am #21264
    rosstcorbett
    Member

    Yes, I don't want the Featured image to appear in the blog post, I just want it to appear as the post thumbnail picture.

    February 19, 2013 at 6:12 am #21270
    Peter
    Member

    Ok. In your functions.php file on line 66 there is a function which displays the featured images.. it looks like this;

    /** Add the featured image section */
    add_action( 'genesis_after_header', 'minimum_featured_image' );
    function minimum_featured_image() {
    	if ( is_home() ) {
    		echo '<div id="featured-image"><img src="'. get_stylesheet_directory_uri() . '/images/sample.jpg" /></div>';
    	}
    	elseif ( is_singular( array( 'post', 'page' ) ) && has_post_thumbnail() ){
    		echo '<div id="featured-image">';
    		echo get_the_post_thumbnail($thumbnail->ID, 'header');
    		echo '</div>';
    	}
    }

    If you change it to this;

    /** Add the featured image section */
    add_action( 'genesis_after_header', 'minimum_featured_image' );
    function minimum_featured_image() {
    	if ( is_home() ) {
    		echo '<div id="featured-image"><img src="'. get_stylesheet_directory_uri() . '/images/sample.jpg" /></div>';
    	}
    	/*
    	elseif ( is_singular( array( 'post', 'page' ) ) && has_post_thumbnail() ){
    		echo '<div id="featured-image">';
    		echo get_the_post_thumbnail($thumbnail->ID, 'header');
    		echo '</div>';
    	}
    	*/
    }

    the featured images on single pages won't be shown above the title, so you can use them for the thumbnails.

    Edit: the forum is mucking about with the ampersands and turning them into #038; - they should be a plain ampersand in your code..

    Does that do what you need?

    February 25, 2013 at 11:42 pm #22844
    eluviis
    Member

    By the way... This thread my interest you: http://www.studiopress.community/topic/minimum-theme-best-practices-for-featured-images/

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble