• 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

Move Featured Image Below Single Post Meta

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 › Move Featured Image Below Single Post Meta

This topic is: not resolved

Tagged: after post title, featured post

This topic contains 2 replies, has 2 voices, and was last updated by  amberjules 5 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 4, 2015 at 12:31 pm #146673

    amberjules
    Member

    I found the code to auto insert the featured image into the single post; however it's showing above the post title. I would like for it to show below the post meta.

    This is the code I added to the child theme functions.php. I realize it says "before post title", lol, but I couldn't find anything to move it after the meta so I just wanted to see if this worked. Hey, one step forward right? 🙂

    //* Display featured image before single post title
    add_action( 'genesis_entry_header', 'featured_post_image', 8 );
    function featured_post_image() {
      if ( ! is_singular( 'post' ) )  return;
    	the_post_thumbnail('post-image');
    }
    

    I would like it to look exactly as it does in my post excerpt in the blog roll: http://www.lamberjules.com, but when you click into the first post you'll see the featured image is before the title: http://www.lamberjules.com/healthy-living/5-reasons-love-green-smoothies-can/.

    I'm learning a lot with Inspect Element for CSS, is there anything like that for PHP?

    Thank you!
    Amber

    http://www.lamberjules.com
    April 4, 2015 at 1:08 pm #146677

    Christoph
    Member

    Hi,

    not exactly for php, but here is a nice visualization of all the genesis hooks:
    http://genesistutorials.com/visual-hook-guide/

    Is this the look you want?

    //* Display featured image before single post title
    add_action( 'genesis_entry_content', 'featured_post_image', 8 );
    function featured_post_image() {
      if ( ! is_singular( 'post' ) )  return;
    	the_post_thumbnail('post-image');
    }

    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    April 4, 2015 at 1:12 pm #146679

    amberjules
    Member

    Christopher! You are amazing!!! Thank you so much for your help! It worked like a charm. Thanks for the hook guide too. I'll have to do some serious digging into it.

  • 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

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