• 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" wording

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 › Change "leave a comment" wording

This topic is: not resolved

Tagged: child theme, custom theme, leave a comment link

  • This topic has 6 replies, 3 voices, and was last updated 7 years, 9 months ago by Genesis Developer.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • June 15, 2015 at 12:37 pm #156294
    mearl2005
    Member

    I have searched and searched and tried every suggestion on changing the wording on my home page for my links to leave comments on my posts. I have not found any coding that works.

    I have a custom theme and I am not finding the coding anywhere in my php files where it is coded to say "leave a comment" when there are no comments made yet. can anyone help? I have used the inspect element feature and have sourced the code to here. Can anyone help me to find where this info is so I can edit it?

    <span class="post-comments">Leave a Comment

    Thanks in advance!
    Melissa


    Melissa
    http://www.livingafrugallife.com

    http://www.livingafrugallife.com/
    June 15, 2015 at 4:14 pm #156310
    Graham
    Member
    <?php
    //* Do NOT include the opening php tag shown above. Copy the code shown below.
    
    //* Modify the speak your mind title in comments
    add_filter( 'comment_form_defaults', 'sp_comment_form_defaults' );
    function sp_comment_form_defaults( $defaults ) {
     
    	$defaults['title_reply'] = __( 'Leave a Comment' );
    	return $defaults;
     
    }

    http://my.studiopress.com/snippets/comments/


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    June 15, 2015 at 5:00 pm #156316
    mearl2005
    Member

    I tried every suggestion in that link and it didn't work.

    Is that code for the link on the home page or the wording above the comments box.? if it is for the link, do I just copy and paste that code you included into the functions.php folder?


    Melissa
    http://www.livingafrugallife.com

    June 15, 2015 at 5:09 pm #156320
    Graham
    Member
    add_filter( 'comment_form_defaults', 'child_comment_form_defaults' );
    function child_comment_form_defaults( $defaults ) {
     
    	$defaults['title_reply'] = 'Have your say';
    	return $defaults;
     
    }

    Placed at the bottom of your functions.php file should change the wording to "Have your say"

    Have you tried it?


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    June 15, 2015 at 5:17 pm #156322
    Graham
    Member

    A thought...

    You do have W3 Total Cache enabled .. maybe you need to clear the cache manually before you see any changes?


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    June 15, 2015 at 10:26 pm #156355
    mearl2005
    Member

    It is still showing up as leave a comment. That changed the wording at the top of the comment box on an individual post. I tried clearing cache and still no change.

    Thanks for the suggestion though. Any other ideas?


    Melissa
    http://www.livingafrugallife.com

    June 16, 2015 at 5:28 am #156375
    Genesis Developer
    Member

    You are using this shortcode [post_comments]. If you replace that shortcode by this one [post_comments zero="ENTER YOUR TEXT"] then it will change the text.


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

  • 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

© 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