• 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

How to remove image from top of 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 › How to remove image from top of post?

This topic is: resolved

Tagged: design, image, remove image, streamline theme

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 8 months ago by daniel123.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 6, 2013 at 6:56 am #9910
    workthatearns
    Member

    When i insert any image in a post on http://workthatearns.com it appears also above the post. I usuallly prefer medium images and this looks pretty ugly on top of the post. I do not wish that to happen. How do i fix it? I am using Streamline child theme.

     

    Thanks

    Harsh

    January 6, 2013 at 9:44 am #9925
    daniel123
    Member

    Took some time to find this, I actually did the same to my blog a couple weeks back.

    To remove the large featured image above the post, open up the functions.php in the child theme folder.

    Find this section of code and remove it.

    /** Add post image above post title */
    add_action( 'genesis_before_post', 'streamline_post_image' );
    function streamline_post_image() {
    
    	if ( is_page() ) return;
    
    	if ( $image = genesis_get_image( 'format=url&size=post-image' ) ) {
    		printf( '<a href="%s" rel="bookmark"><img class="post-photo" src="%s" alt="%s" /></a>', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    	}
    
    }

    Streamline theme: pictures auto creates itself when adding a photo

    January 6, 2013 at 9:46 am #9926
    workthatearns
    Member

    Thanks a ton mate! Worked like a charm 🙂

    January 6, 2013 at 9:51 am #9928
    daniel123
    Member

    No problem 🙂

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to remove image from top of post?’ is closed to new 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