• 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 do I remove 'filed under' & 'tagged with' but keep 'Leave a comment'?

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 do I remove 'filed under' & 'tagged with' but keep 'Leave a comment'?

This topic is: resolved

Tagged: filed under, leave a comment, tagged with

  • This topic has 5 replies, 3 voices, and was last updated 10 years, 11 months ago by Chris Cree.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • January 5, 2013 at 10:50 am #9739
    mariafernandez
    Member

    A few days ago I started a topic where I got the answer to how to remove the 'filed under' and 'tagged with' areas. The replies are here: http://www.studiopress.community/topic/how-do-i-remove-filed-under-and-tagged-with/#post-9175

    Unfortunately the Simple Hooks solution I used following those replies also removes the 'Leave a comment' line.

    So, my question is: How do I remove 'filed under' & 'tagged with' but keep 'Leave a comment'? When I unhook 'genesis_after_post_content' the three of them disappear.

    January 5, 2013 at 11:08 am #9745
    Chris Cree
    Participant

    There really isn't a good way to filter the post meta with Simple Hooks, which is why the Simple Edits plugin is there to deal with this.

    However, since the theme you're using isn't compatible with Simple Edits your best bet is to modify a function in your functions.php file.

    Open your functions.php file in a text editor (not Microsoft Word!) and look for this code at about line 49:

    /** Customize the post meta function */
    add_filter( 'genesis_post_meta', 'post_meta_filter' );
    function post_meta_filter($post_meta) {
    	if (!is_page()) {
    		$post_meta = '[post_categories] [post_edit] [post_tags] [post_comments]';
    		return $post_meta;
    	}
    }

    Edit the line that sets the $post_meta value to this:

    $post_meta = '[post_comments]';

    Save your functions.php file and FTP it back up to your server.

    Then you should be good to go.

    January 5, 2013 at 11:10 am #9747
    buddy_boy8403
    Member

    Are you talking about in the byline?  If so, you can use Genesis Simple Edits.

    January 5, 2013 at 11:23 am #9753
    Chris Cree
    Participant

    In the thread she referenced, Maria already explained the theme she is customizing isn't compatible with Simple Edits. She tried it and it broke her site.

    January 5, 2013 at 12:31 pm #9760
    mariafernandez
    Member

    Chris, that worked great. I've now got the "Leave a comment" line back, and the "tagged with" and "filed under" areas are gone. Thanks.

    (There isn't much risk of me being seen using Microsoft Word)

    January 5, 2013 at 3:16 pm #9793
    Chris Cree
    Participant

    Glad that fixed it. I don't know where folks are at. But Word ads a bunch of junk that wreaks havoc on web files. Some new folks don't realize that and can really mess up their sites editing files in Word. So I always through that caveat in just in case.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How do I remove 'filed under' & 'tagged with' but keep 'Leave a comment'?’ 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