• 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

Academy Pro: Remove Featured images from Category template

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 › Academy Pro: Remove Featured images from Category template

This topic is: not resolved

Tagged: category template, category.php, featured image, genesis_do_post_image

  • This topic has 12 replies, 4 voices, and was last updated 7 years, 2 months ago by jcd.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • January 22, 2018 at 2:20 am #215604
    greatbigterry
    Member

    Hi - i'd like to remove Featured images from showing on category pages.

    What is the exact code to do this please?

    January 22, 2018 at 2:35 am #215605
    Brad Dalton
    Participant

    You can use this code in a category.php file

    Or

    Conditionally from your functions file.


    Tutorials for StudioPress Themes.

    April 19, 2018 at 1:57 pm #219120
    Chuck
    Member

    Brad, I have been working with this theme and have tried the above. I need to remove the images in the category "news" so, none of the post use featured images. BUT Academy Pro grabs an image from the post to create a post thumbnail that is included above the post.

    I created a category-news.php template. I added a "content-sidebar" layout just to test if it was working and it is.

    However, the above does not remove the image: http://ccec2.flywheelsites.com/category/news/

    I wonder if /lib/featured-image.php or /lib/grid-layout.php is running after the template? Any help would be appreciated.


    Chuck Smith
    Twitter: @polishedwp

    April 19, 2018 at 2:40 pm #219123
    Brad Dalton
    Participant

    It's been repositioned in functions.php so the standard code will not work. Use this:

    https://gist.github.com/braddalton/99fd598dab76b79a79f907e8200e4b67#file-category-php


    Tutorials for StudioPress Themes.

    April 19, 2018 at 3:52 pm #219124
    Chuck
    Member

    Thanks Brad, I ended up wrapping in a function:

    add_action( 'genesis_entry_header', 'cs_category_no_image');
    function cs_category_no_image() {
    	if (is_category( 'news')) {
    		remove_action( 'genesis_entry_header', 'genesis_do_post_image', 8 );
    	}
    }
    

    Works perfectly.


    Chuck Smith
    Twitter: @polishedwp

    May 12, 2018 at 10:23 am #219800
    jcd
    Member

    This seems to be the closest related to what I'm trying to do...

    I notice when I drop a full-width image into a post, it automatically turns it into a featured image above the blog article (even when I don't designate a featured image).

    EDIT: And now I notice if I remove the photo from the post, it remains as the featured image. strange?

    How would I just get rid of the featured image function altogether? see an example here: http://jcdf.jcdeen.com/sometimes-you-need-to-put-the-most-focus-on-this/

    May 12, 2018 at 10:27 am #219802
    Brad Dalton
    Participant

    There's code in the lib > featured-images.php file between lines 35 - 49 which you can remove.


    Tutorials for StudioPress Themes.

    May 12, 2018 at 10:31 am #219803
    jcd
    Member

    thanks, but not sure I see it?

    View post on imgur.com

    May 12, 2018 at 10:52 am #219805
    jcd
    Member

    Actually, I misread.

    Is there a way to cancel it out in the functions file? I don't want to edit too many things. I know for the purpose of a framework, it's important to focus on the style.css and functions.php file.

    May 12, 2018 at 11:07 am #219806
    Brad Dalton
    Participant

    Navigate to lib > featured-images.php file between lines 35 - 49


    Tutorials for StudioPress Themes.

    May 12, 2018 at 11:09 am #219807
    jcd
    Member

    right, but is there a way to cancel it out via the functions file?

    or will altering the featured-images.php file affect future updates?

    May 13, 2018 at 8:34 am #219822
    Brad Dalton
    Participant

    Child themes don't need updating.


    Tutorials for StudioPress Themes.

    May 14, 2018 at 9:30 am #219843
    jcd
    Member

    it worked thanks

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