• 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

Lifestyle Pro – Add Photo to Blog Post?

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 › Lifestyle Pro – Add Photo to Blog Post?

This topic is: not resolved

Tagged: blog, featured image, image, lifestyle Pro

  • This topic has 5 replies, 4 voices, and was last updated 9 years, 5 months ago by Genesis Developer.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • September 4, 2015 at 5:06 pm #164620
    shannonb
    Member

    I use the featured image so there's a photo with a blog post on the home page, and it's on the blog page, but it missing when you click on the individual post. How do I add it? (It's really bare without photos.)

    Thank you.

    http://www.shannonlbrown.com
    September 4, 2015 at 6:16 pm #164626
    Brad Dalton
    Participant

    It's not added to the single post by default unless you use additional code to do that.


    Tutorials for StudioPress Themes.

    September 4, 2015 at 8:38 pm #164634
    shannonb
    Member

    What code would I use? (I'd hoped it would be a plugin.)

    September 5, 2015 at 2:41 am #164645
    Brad Dalton
    Participant

    Untested however this plugin should do what you want https://wordpress.org/plugins/display-featured-image-genesis/


    Tutorials for StudioPress Themes.

    January 27, 2016 at 7:46 am #177657
    Joe
    Member

    I tried that plugin it didn't seem to do what the OP asks.

    I too would like to display the featured image above the post title, on the single post archive.

    Any ideas how to achieve this?

    Thanks.


    Totally new to Genesis modifications and barely competent in theme development in general.

    January 27, 2016 at 8:43 am #177662
    Genesis Developer
    Member

    Add this snippet in your functions.php file

    add_action( 'genesis_entry_header', 'gd_featured_image_single_post', 4 );
    function gd_featured_image_single_post() {
      if( ! is_singular( 'post' ) )
        return;
        
      $img = genesis_get_image( array(
    		'format'   => 'html',
    		'size'     => $image_size,
    		'context'  => 'archive',
    		'attr'     => array ( 'alt' => get_the_title(), 'class' => 'aligncenter singular-image' ),
        'fallback' => ''
    	) );		
          
      if( ! empty( $img ) ) 
        printf( '%s', $img ); 
      
    }

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

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

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