• 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 theme featured image problem

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 theme featured image problem

This topic is: not resolved

Tagged: featured image, minimum, portfolio

  • This topic has 1 reply, 2 voices, and was last updated 13 years, 4 months ago by cdils.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 26, 2012 at 6:13 am #7450
    tribalcafe
    Member

    I am trying to customize the Minimum theme and as part of this I want to place the featured image on blog page above the post title. Using this code I achieved that but the portfolio 'page' now has two images and I can't figure out how to get rid of it.

    add_action( 'genesis_before_post_content', 'generate_post_image', 5 );
    function generate_post_image() {
    
    	if ( is_page() || ! genesis_get_option( 'content_archive_thumbnail' ) )
    		return;
    
    	if ( $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
    		printf( '<a href="%s" rel="bookmark"><img src="%s" alt="%s" /></a>', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    	}
    
    }
    
    website: www.garyfox.co.uk
    
    Any help or ideas appreciated

     

    January 27, 2013 at 9:29 am #15295
    cdils
    Participant

    Hi there,

    Not sure if you're still having trouble or not. Have you seen the new Genesis Minimum Image Extender plugin?

    http://wordpress.org/extend/plugins/genesis-minimum-images-extended/

    This might be a non-coding solution for you. 🙂

    Otherwise, you could add in a conditional to your code to make sure you're not on a single portfolio page:
    if ( !is_singular( 'portfolio' ) ) {
    // print the image
    }

    Cheers,
    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂

    I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.

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