• 0

Change "Leave a Reply" text on Comments


Question

Posted · Report post

I've figured out how to change the text in the meta bar, but how can I change the standard text on the comments sections? 

 

I would like to change "Leave a Reply" to "Leave a Review".

 

example page: http://designsqr.com/design/plank/

 

Thanks!

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Posted · Report post

Hi,

 

You can do this by using a child theme or the customize plugin and adding the following code to the functions.php file within your child theme or customize plugin (Do not edit the functions.php file in the DMS directory).

 

add_filter('comment_form_defaults','my_comment_text');
function my_comment_text ($arg) {
$arg['title_reply'] = __('Add your replacement text here');
return $arg;
}
 
In the code above, where you see Add your replacement text here, edit this and add what you like.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks Danny! 

 

It didn't work for me, but I realize that is because I have "Jetpack Comments" activated. I realized Jetpack Comments lets you change this text by simply going to settings, discussion and editing the "greeting text" to whatever you'd like. 

 

Sorry about that. 

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for letting us know 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now