• 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

Minimum – Blog Pages/Featured Photo

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 › Minimum – Blog Pages/Featured Photo

This topic is: resolved

Tagged: blog, featured images, minimum

  • This topic has 9 replies, 3 voices, and was last updated 10 years, 3 months ago by cehwitham.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • February 12, 2013 at 4:14 pm #19929
    KBordonaro
    Member

    Hi, I'm having some problems with the featured images showing on my blog posts and making the page go out of wack.

    I read in another post that featured images need to be 600 pixels.

    Is there a way to do this without having to manually go through all of my blogs featured images?

    -or-

    Is there a way to simply remove the featured images from showing in the top portion?

    Thanks!

    Kimberly

    February 19, 2013 at 8:32 am #21305
    cehwitham
    Member

    Hi Kimberly,

    I've had a look at your site (got the link from one of your other posts) but I can't see a page where this is an issue.

    Either resizing the images all at once using Regenerate Thumbnails plugin ( http://wordpress.org/extend/plugins/regenerate-thumbnails/ ) or unhooking the images would be easy enough but I could be more specific if I could see where it was messing up.

    Chris


    Twitter: cehwitham Web: cehwitham.com

    February 19, 2013 at 5:06 pm #21495
    KBordonaro
    Member

    Hi, Chris!

    Thanks so much for getting back to me.

    There were crickets, so somehow I ended up figuring out how to disable featured images on the blog posts.

    I appreciate your help and will check out the regenerate thumbnail pluggins for the future.

    You rock,

    Kimberly

    February 19, 2013 at 6:43 pm #21525
    cehwitham
    Member

    Glad you got it sorted Kimberly.


    Twitter: cehwitham Web: cehwitham.com

    February 20, 2013 at 2:51 am #21590
    QUESTIONM
    Member

    Hey I'm actually having the same problem that Kimberley was. I'd love to know just how to remove the featured image from showing up in the top portion but still be able to keep the home page looking the way it does. I tried getting rid of....

    /** 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>';
    }
    }

    From the functions.php but that was obviously a newbie mistake as like I mentioned it got rid of my homepage pic too 🙁

    Any help on this would be great

    Regards, Luke S.

    February 20, 2013 at 11:58 am #21704
    cehwitham
    Member

    Hi Luke do you have a link to your site?

    I'm not sure where you're referring to as the top portion?

    Chris


    Twitter: cehwitham Web: cehwitham.com

    February 21, 2013 at 1:54 am #21902
    QUESTIONM
    Member

    http://fullcirclecontact.com

     

    If you click any post or page the featured image shows up right under the nav bar. I really only wanted the featured image to show up beside the snippet next to post excerpts.

    February 21, 2013 at 5:45 am #21922
    cehwitham
    Member

    Open functions.php in /wp-content/themes/minimum/ and find the following code:

    /** Add the featured image section */
    add_action( 'genesis_after_header', 'minimum_featured_image' );
    function minimum_featured_image() {
    if ( is_home() ) {
    echo '';
    }
    elseif ( is_singular( array( 'post', 'page' ) ) && has_post_thumbnail() ){
    echo '';
    echo get_the_post_thumbnail($thumbnail->ID, 'header');
    echo '';
    }
    }

    You'll want to remove the elseif section so you have:

    /** Add the featured image section */
    add_action( 'genesis_after_header', 'minimum_featured_image' );
    function minimum_featured_image() {
    if ( is_home() ) {
    echo '';
    }
    }


    Twitter: cehwitham Web: cehwitham.com

    February 21, 2013 at 5:05 pm #22096
    QUESTIONM
    Member

    Thanks for the quick help guy!

    I implemented the code but it seems to get rid of the home page image as well :(. I'll keep tinkering though

    February 21, 2013 at 5:25 pm #22101
    cehwitham
    Member

    I've just noticed the code I pasted removed the content in the echo ''; statement for outputting the homepage image. If you copy that echo statement from the original code, it should work fine.


    Twitter: cehwitham Web: cehwitham.com

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 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

© 2023 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