• 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 showing on category page of Streamline Pro

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 › General Discussion › Feature image showing on category page of Streamline Pro

This topic is: resolved
  • This topic has 6 replies, 2 voices, and was last updated 11 years, 7 months ago by davidsteele.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • March 30, 2014 at 1:43 am #97389
    davidsteele
    Member

    Hi,

    Is there anyway to remove the feature image showing on category pages of Streamline Pro? I was trying to remove through function.php and genesis setting but it also remove the feature image inside the post excepts. Any suggestion how to fix this?

    Thanks,
    David

    http://relationshipcoach.org/sailinghappilyeveraftertest/category/blog/
    March 31, 2014 at 4:19 pm #97769
    Cathy @ WPBarista
    Member

    Hi David,
    Find this in your functions file:

    //* Add post image above post title
    add_action( 'genesis_entry_header', 'streamline_post_image', 1 );
    function streamline_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' ) );
    	}
    	
    }
    

    and replace with this:
    //* Add post image above post title
    add_action( 'genesis_entry_header', 'streamline_post_image', 1 );
    function streamline_post_image() {

    if ( is_page() || is_category() || ! genesis_get_option( 'content_archive_thumbnail' ) )
    return;

    if ( $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
    printf( '%s', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    }

    }


    Visit WP Barista to download 52 Quick Edits You Can do Today to Get More Clicks / Views / Sales. I also do paid support (starting at $75) and fully custom Genesis Child Themes.
    March 31, 2014 at 4:19 pm #97766
    Cathy @ WPBarista
    Member

    Hi David
    you can remove the featured images by editing the functions file:
    Find this:

    //* Add post image above post title
    add_action( 'genesis_entry_header', 'streamline_post_image', 1 );
    function streamline_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' ) );
    	}
    	
    }
    

    and replace with this:

    //* Add post image above post title
    add_action( 'genesis_entry_header', 'streamline_post_image', 1 );
    function streamline_post_image() {
    
    	if ( is_page() || is_category() || ! 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' ) );
    	}
    	
    }
    

    Visit WP Barista to download 52 Quick Edits You Can do Today to Get More Clicks / Views / Sales. I also do paid support (starting at $75) and fully custom Genesis Child Themes.
    March 31, 2014 at 4:19 pm #97764
    Cathy @ WPBarista
    Member

    Yes, if you're comfortable editing the functions file:

    look for this code:
    //* Add post image above post title
    add_action( 'genesis_entry_header', 'streamline_post_image', 1 );
    function streamline_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( '%s', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    }

    }

    and change it to this:
    //* Add post image above post title
    add_action( 'genesis_entry_header', 'streamline_post_image', 1 );
    function streamline_post_image() {

    if ( is_page() || is_category() || ! genesis_get_option( 'content_archive_thumbnail' ) )
    return;

    if ( $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
    printf( '%s', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    }

    }


    Visit WP Barista to download 52 Quick Edits You Can do Today to Get More Clicks / Views / Sales. I also do paid support (starting at $75) and fully custom Genesis Child Themes.
    March 31, 2014 at 4:19 pm #97762
    Cathy @ WPBarista
    Member

    All excerpts are treated the same for "archive" pages. Archives include search results, dated archives, author archives, blog page and categories.

    To remove images from categories, look for your functions.php file.

    1. Take a copy and keep it where you'll remember on your computer
    2. look for this entry:

    //* Add post image above post title
    add_action( 'genesis_entry_header', 'streamline_post_image', 1 );
    function streamline_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( '%s', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    }

    }

    3. change it to this:
    //* Add post image above post title
    add_action( 'genesis_entry_header', 'streamline_post_image', 1 );
    function streamline_post_image() {

    if ( is_page() || is_category() || ! genesis_get_option( 'content_archive_thumbnail' ) )
    return;

    if ( $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
    printf( '%s', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    }

    }


    Visit WP Barista to download 52 Quick Edits You Can do Today to Get More Clicks / Views / Sales. I also do paid support (starting at $75) and fully custom Genesis Child Themes.
    April 1, 2014 at 2:30 am #97854
    davidsteele
    Member

    Hi @CathyT,

    Thank you so much, I was able to fix it now base on your given solution. Here's my final code that works on my site:

    //* Add post image above post title
    add_action( 'genesis_entry_header', 'streamline_post_image', 1 );
    function streamline_post_image() {

    if ( is_page() || is_category() || ! genesis_get_option( 'content_archive_thumbnail' ) )
    return;

    if ( $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
    printf( '%s', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    }

    }

    Appreciate your help!
    - David

    April 3, 2014 at 10:49 pm #98396
    davidsteele
    Member

    Hi CathyT,

    Do you have any idea how I can align the featured image on the left side of the content in the category pages?

    Thanks,
    David

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘General Discussion’ 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