• 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

Agent Press Pro: Remove Entry-Meta on Category Pages Only

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 › Agent Press Pro: Remove Entry-Meta on Category Pages Only

This topic is: resolved
  • This topic has 4 replies, 3 voices, and was last updated 11 years ago by tigaruk.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • July 4, 2014 at 5:01 pm #113002
    tigaruk
    Member

    http://casuallyhardcore.com/testsite/category/reviews/

    I want to remove the header and footer entry-meta from just the category page. How do i do this as any code i've found doesn't do anything.

    July 4, 2014 at 8:27 pm #113013
    Brad Dalton
    Participant

    Add the !is_category() conditional tag after the function in the code to remove it http://my.studiopress.com/snippets/


    Tutorials for StudioPress Themes.

    July 5, 2014 at 8:17 am #113041
    tigaruk
    Member

    Im obviously doing something dumb here as i can't get it to work.

    
    //* Remove the entry meta in the entry footer (requires HTML5 theme support)
    
    remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    
    //* Remove the entry meta in the entry header (requires HTML5 theme support)
    
     remove_action(  'genesis_entry_header', 'genesis_post_info', 12 ); 

    Works fine, apart from it removes it from every single page. As soon as i add !is_category() anywhere in that code, it just breaks that bit of code and its showing everywhere again.

    July 5, 2014 at 12:29 pm #113059
    Genesis Developer
    Member

    try this code and add this in your functions.php file.

    add_action('template_redirect', 'customizePostMeta');
    function customizePostMeta(){
     if( is_category()){
        //* Remove the entry meta in the entry footer (requires HTML5 theme support)
        remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
       
       //* Remove the entry meta in the entry header (requires HTML5 theme support)
       remove_action(  'genesis_entry_header', 'genesis_post_info', 12 ); 
     }
    }

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    July 5, 2014 at 12:48 pm #113061
    tigaruk
    Member

    That works perfectly as well. Thank you very much for your help, its really appreciated!

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

© 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