• 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

Feature Image Below Title | Eleven40

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 › Feature Image Below Title | Eleven40

This topic is: not resolved

Tagged: Feature image below title

  • This topic has 2 replies, 2 voices, and was last updated 12 years ago by cgold1979.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 12, 2014 at 2:17 am #89930
    cgold1979
    Member

    Hi Guys

    Im hoping someone can help me.

    I have implemented the follow code which add the feature above the page content.

    However I need this code to be below the date/time meta data. It is also adding the feature image on top of the excerpts in my category page.

    Feature image is above Date Meta
    http://tinypic.com/r/o0ukac/8

    Feature Image showing above excerpts in category

    http://tinypic.com/r/2d0azbp/8

    Code Im using

    add_action( 'genesis_before_post_content', 'wpsites_before_post_content_image', 5 );
    function wpsites_before_post_content_image() {

    if ( is_page() ) return;

    if ( $image = genesis_get_image( 'format=url&size=post-image' ) ) {
    printf( '%s', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    }

    }

    Many Thanks
    Colin

    http://www.thetrendspotter.net
    February 12, 2014 at 3:21 am #89932
    Sridhar Katakam
    Participant
    add_image_size( 'single-thumbnail', 810, 200, TRUE );
    
    add_action( 'genesis_post_content', 'sk_show_featured_image', 9 );
    function sk_show_featured_image() {
    
    	if ( ! is_singular( 'post' ) )
    		return;
    
    	genesis_image( array( 'size' => 'single-thumbnail' ) );
    
    }

    Above code will display featured image below post info for single Posts in XHTML child themes like eleven40. If a Post does not have featured image set, then the first image in Post's content will be pulled and shown.

    You can change the width and height in 1st line.

    Also add this in style.css:

    img.attachment-single-thumbnail {
    	margin-bottom: 25px;
    }

    Genesis Tutorials | Follow me on Twitter

    February 12, 2014 at 8:29 am #89967
    cgold1979
    Member

    Worked like a charm thanks Sridhar

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