• 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 filter and tag from all Archives

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 filter and tag from all Archives

This topic is: resolved

Tagged: archives, category, page, remove, tag

  • This topic has 4 replies, 2 voices, and was last updated 10 years, 6 months ago by toni.gomes.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • March 21, 2013 at 11:42 am #29992
    toni.gomes
    Member

    I am using news theme.

    i want to remove filter and  tag details from archives page

    the site- http://www.krishnatorque.com/category/tips-tricks/

    can I remove leave comment option too?

    March 21, 2013 at 4:11 pm #30293
    Robin
    Member

    Here is how to remove the post info (comments, author, date). How to remove the post meta (tags and categories).

    You can also just modify those, if you want to show the date, for instance, but not the author or comments. Actually, to remove the comments link, the easiest way would be to disable comments altogether on the Genesis settings page.


    I do the best I can with what I’ve got. (say hey on twitter)

    March 21, 2013 at 8:46 pm #30358
    toni.gomes
    Member

    its removing from single post page too.

    i want to remove from category page, tag and archives page only. not from single post.

    March 22, 2013 at 5:12 am #30408
    Robin
    Member

    I *think* this may do it:
    add_action( 'genesis_before_post', 'remove_infometa' );
    function remove_infometa () {
    if ( ! is_singular() ) {
    remove_action( 'genesis_before_post_content', 'genesis_post_info' );
    remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
    }
    }

    If it's not right, I think it's close. You need to have the actions run conditionally. What I put there would remove the info and meta if you are not on a single post/page. (You need to remove the remove_action lines of code from the first go round.)


    I do the best I can with what I’ve got. (say hey on twitter)

    March 23, 2013 at 9:43 pm #30822
    toni.gomes
    Member

    awesome. its work.

    that's exactly what I was looking for

    thank you

    thank you

    thank you

  • 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

© 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