• 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

change 'leave a comment' link text in entry header

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 › change 'leave a comment' link text in entry header

This topic is: not resolved
  • This topic has 4 replies, 2 voices, and was last updated 9 years, 2 months ago by Marius123.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • April 24, 2017 at 1:51 pm #205217
    Marius123
    Member

    Hello,

    I found a snippet regarding the entry header change, but cannot change the actual 'Leave a comment' link text. Can anyone help?

    <?php
    //* Do NOT include the opening php tag shown above. Copy the code shown below.
    //* Customize the entry meta in the entry header (requires HTML5 theme support)
    add_filter( 'genesis_post_info', 'sp_post_info_filter' );
    function sp_post_info_filter($post_info) {
    $post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
    return $post_info;
    }

    April 24, 2017 at 2:21 pm #205219
    Victor Font
    Moderator

    This is a WordPress feature, not Genesis:

    add_filter('comment_form_defaults', 'set_my_comment_title', 20);
    function set_my_comment_title( $defaults ){
      $defaults['title_reply'] = __('Custom leave a comment', 'customizr-child');
      return $defaults;
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    April 24, 2017 at 2:43 pm #205222
    Marius123
    Member

    Victor, after posting it to functions.php receive the error. Parse error: syntax error, unexpected 'function' (T_FUNCTION)

    April 25, 2017 at 11:26 am #205287
    Victor Font
    Moderator

    Check your quote marks. Some editors convert straight quotes to curly quotes. Curly quotes don't work in php.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    April 25, 2017 at 12:19 pm #205289
    Marius123
    Member

    Thank you Victor, I will try.

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

© 2026 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