• 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

"Leave a Comment" Code Snippet doesn't work

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 › "Leave a Comment" Code Snippet doesn't work

This topic is: not resolved

Tagged: code snippet, comment link, modify text

  • This topic has 6 replies, 2 voices, and was last updated 12 years, 6 months ago by Carla the Moose.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • April 25, 2013 at 1:10 pm #37705
    Carla the Moose
    Member

    Hola!

    Any suggestion as to why pasting the "Leave a Comment" Code Snippet into my functions.php file doesn't work?

    My site isn't live, so you can't take a peek. But all I did was copy, paste, change the text to just "Comment," and then upload.

    It should work. I'm using eleven40, although I doubt that matters. This is what I used:

    `/** Modify the comment link text */
    add_filter( 'genesis_post_info', 'post_info_filter' );
    function post_info_filter( $post_info ) {
    return '[post_comments zero="Comment" one="1 Comment" more="% Comments"]';
    }
    `
    Thanks!

    April 25, 2013 at 2:22 pm #37715
    Carla the Moose
    Member

    I'm having the same problem with the post-meta Code Snippet that's supposed to let me remove "Filed under."

    I just submitted a support ticket, since I'm anxious to get this figured out. I'll post back here once I learn why these code snippets aren't working for me. 🙂

    April 25, 2013 at 8:33 pm #37763
    Carla the Moose
    Member

    Support told me that the Simple Edits plugin overrides any functions code that I add to functions.php. I'm not sure why it would do that, but it does. That's why the Code Snippets weren't working.

    So I removed the plugin. But the only thing that displayed under my post title was the comments link. The link was reflecting the change I made via the snippet. However, the date and categories aren't showing up.

    I thought Simple Hooks would take care of this, but now I have two comments links displaying. So one problem was kind of addressed, but now it has a friend.

    Hopefully they can help me iron it out. 🙂

    May 24, 2013 at 9:40 am #42485
    kworthington
    Member

    I am having the same problem - changing "Leave a Comment" to simply "Comments" - though I am using a different snippet:

    //* Modify comments header text in comments
    add_filter( 'genesis_title_comments', 'custom_genesis_title_comments' );
    function custom_genesis_title_comments() {
    $title = '<h3>Comments</h3>';
    return $title;
    }

    This is on the Executive child theme. I'd really appreciate some help. Thanks.

    May 24, 2013 at 11:45 am #42501
    Carla the Moose
    Member

    I copied the comments header code snippet and pasted it into my functions file. It worked without any problems.

    I started this thread in reference to the comments link in the post-info section under the blog post title. But you want to change the comments header text and not the post-info link, right?

    Your best bet is to start a new thread or submit a support ticket. 🙂

    May 24, 2013 at 12:37 pm #42510
    kworthington
    Member

    Thanks, WiggleChicken - I appreciate the reply.

    My client actually decided that the LEAVE A COMMENT block shouldn't be at the top of the Executive theme's posts, so I simply removed it. If this comes up again, I will certainly submit a support ticket.

    Thanks again.

    May 24, 2013 at 2:00 pm #42515
    Carla the Moose
    Member

    It sounds like you were trying to change the comments link in the post-info code just under the post title. The code snippet you included above is for the comments header. If they change their mind, just grab the first code snippet that says Comments Link.

    I'm actually a fan of placing the comments link at the bottom. Some sites do both, but I think it's cleaner at the bottom.

    Anyhoo, post back here if you need help. It's really just a matter of grabbing the other code snippet, but I'd be happy to lend a chicken foot should you need some guidance with that.

    Cheerios! 🙂

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