You are here: WordPress Video TutorialWordpress TutorialWordPress 3- Changing “Leave A Reply”

WordPress 3- Changing “Leave A Reply”

by Kimi on August 24, 2010

How to change, modify or customize  “leave a reply” text in Twenty Ten wordpress 3 default theme to leave a comment in your blog.

In today wordpress 3.0.1 tutorial, we are going to change the wording “leave a reply” in your comment template  just after your blog post and before comment box.

This is probably needed if you have specific blog or site’s niche and want to be “different” to your commenters.

It is very recommend that you change those text, because it is more friendly and less formals. Of course, if you have a business blog, you may change it too to more related for your business.

However it is really optional, if you are afraid to change anything, then leave it by default.

The text we will modify and change.

The steps:

1. Look for the directory where you install wordpress.
2. Find wp-includes folder.
3. Copy comment-template.php by copying it and rename it to, for example, comment-template1.php
3. Open comment-template.php file.
4. In this demo, i use notepad++ it is in line 1542 (see image)

The line of the code that should be modified.

Find this code: 'title_reply'          => __( 'Leave a Reply' ),

Change it to: 'title_reply'          => __( 'shoot me your comment' ),

blog seo

Of course the text above is just an example :)

5. Save the file. Refresh your blog and try it.

  • Tips: you can change the button from post a comment to shoot, or anything you like.  In case something is wrong, rename back the copy of comment-template1.php to the original(comment-template.php).

The modification i used for this demo.

The other modification (button)

Subscribe new tips via Email:

Was the post helpful? Share it to help others with:

{ 43 comments… read them below or add one }

Karl Foxley August 24, 2010 at 9:48 pm

I always like to change the comment button on my sites. Submit seems so ‘cold’. I’ve changed mine to ‘Have your say!’. I think doing this makes a site seem a bit more welcoming, a bit more inviting.

Warmest regards,

Karl

Reply

Dina August 25, 2010 at 8:04 am

@Karl Foxley, Hi there

How true, its funny because i just realise that my button still show “submit” haha!

I will definitely change after replying comments today, thanks for the great input!

Best,
Dina.

Reply

Karl Foxley August 27, 2010 at 9:15 am

@Dina,

Hey Dina, I see you’ve changed your comment button text, much more welcoming. :)

Reply

Dina August 27, 2010 at 3:17 pm

@Karl Foxley, Yes! :)

I changed it yesterday, it looks good for now, but might change the wording i find better one, thanks Karl!

chambres d'hotes September 4, 2010 at 1:40 pm

Thanks,

This is a great article and a great website. I liked it very much. It will help me to optimise my websites in europe. I have website in travel and that means a lot of seo work !!

Thanks a lot and greetings,

Dave and Carol
Seo and Travel Website in Europe, France

Reply

annuaire September 12, 2010 at 12:05 pm

Thanks for sharing, top tips!!

Reply

kaka October 14, 2010 at 9:29 am

Thanks for information. ;)

Reply

Dina October 14, 2010 at 10:01 am

Most welcome! =)

Reply

David October 30, 2010 at 1:47 am

Great post, just what I was looking for!

Can you do the above but specify different pages?

eg, on home page perhaps have “Shoot me a comment” and on another page have “boast about it here” ?

cheers, David

Reply

Kimi October 30, 2010 at 7:44 am

Hey David,

Unfortunately that i can’t do, sorry :(

Cheers.

Reply

Cynthia W. October 30, 2010 at 6:41 pm

Thanks for the tip. I had trouble finding out how to change the generic “Comment” text. Your tips are always so helpful. Thx!

Reply

Kimi October 30, 2010 at 7:10 pm

Hi there Cynthia,

I am glad the post was able to help you.

Thanks for leaving a nice comment.

Cheers :)

Reply

Adam November 25, 2010 at 5:01 pm

Great info here very useful, be sure to check out my blog.

Cheers Adam

Reply

Shell December 1, 2010 at 12:17 am

Maybe I didn’t read the tip correctly, but are you suggesting to make the changes in the file that’s in the wp-includes folder? I would think that you would want to incorporate the change into the theme files so that it doesn’t get written over during core files upgrades.

Reply

Kimi December 1, 2010 at 7:06 am

Hi Shell,

Yes, editing files other than twenty ten files will be overwritten after upgrades, but this kind of changes are very seldom to make, so we have to change manually again.

It is the easiest and not hard to do, thanks for leaving a feedback.

Reply

Shell December 1, 2010 at 8:46 pm

Better override the function in the twenty-ten theme’s comments.php file, at the bottom of this file you’ll find

you could replace it with something like this –

‘Don’t just leave a reply, let me know what’s on your mind’)); ?>

(other array items can be added with a comma in between them)

Reply

Shell December 1, 2010 at 8:49 pm

Hey, I just posted a comment with some code and half of it got eliminated when I submitted it. Disregard in this case, thanks, –s

Reply

Kimi December 2, 2010 at 6:51 am

Should be with
<code>yourcodegoeshere</code>

Like this;

mycode is here

Reply

Shell December 2, 2010 at 12:33 pm

Hi, I have done that the second time around and it didn’t make any difference. I got the same result as in my first try, before I tried the code tags, except I got blank yellow boxes instead of just blank space — I was hoping you would delete both replies. (i.e., the one in the previous thread, above, dated dec 1, 8:46, should also be deleted)

The code tags appear to only change the style of the text, not allow code to be inserted within the text. The comment text field acts as if it were in “html view” in a post and tries to parse out the code I am inserting.

I am trying below replacing the angled brackets with their html equivalent, please delete it if it comes out all botched again, thanks, –s

Better override the function in the comments.php file, in the twentyten theme at the bottom of comments.php find

<?php comment_form(); ?>

replace it with

<?php comment_form(array(
'title_reply'=> 'Don\'t just leave a reply, let me know what you think')); ?>

Reply

Kimi December 2, 2010 at 1:49 pm

Shell,

Have you tried this code? i will try later on, and let you know the result.

Thanks.

Shell December 2, 2010 at 3:12 pm

Yes, it works, I wouldn’t post something off the top of my head, I tried it first. Since it’s an array, if you need to change additional defaults, they can be added between single quotations with a comma in between.

Granted, I think the twenty-ten theme is extremely complicated to customize, I’ve done plenty of customizations using the previous default theme there and there was the odd item here and there I would need to bring in from the core files into the functions.php file, but for the most part it had plenty of stuff available for customization within the theme (the default comments labels for instance were right in the comments.php file). I suppose they view it as an improvement that all that code just gets called in with this one function <?php comment_form(); ?> but it really makes me wonder.

Reply

Kimi December 2, 2010 at 3:59 pm

Great! I will try it on the weekend.

Reply

elias o. rosas December 7, 2010 at 11:31 pm

congrats for your blog, i´m working with twenty ten theme, i´d like to customized the – leave a reply – expression but i haven´t been able to find the comments-template.php file inside the wp-includes folder, i´ve gone around stuff and no success yet, what do you think is happening?

Reply

Kimi December 8, 2010 at 12:06 am

Hello elias,

It must be there, you have to look for it in cPanel, and not in dashboard.

I hope this helps, good luck!

Reply

elias o. rosas December 8, 2010 at 7:22 pm

hi there! how silly i can get sometimes!
i hadn´t notice there were subsecuent pages containing the rest of the template files in te wp-includes folder, i am grateful for your support and tutorials.
This blog is still in the making, my first one to complement with a touristic website, check it out and thanks once more.

Reply

Kimi December 8, 2010 at 11:17 pm

Oh, it does not mean that you’re silly, if you are new to Wp, we would not know much :-)

Btw, it would be easier to test wordpress locally in your pc than in an online test, here is a quick link to install wp local in windows:

http://www.blog.web6.org/install-wordpress-locally-windows/

In mac and ubuntu are in the related post’s links.

Good luck, elias!

Medellin December 29, 2010 at 5:15 pm

try to make these changes and give me error :-(, will be the theme I use?

Reply

Kimi December 30, 2010 at 8:00 am

Hi there,

Well this tutorial is using Twenty Ten theme, and It ONLY applies to Twenty Ten theme.

Kimi.

Reply

nate January 4, 2011 at 5:36 am

Thesis makes this much easier but this is a great tip for the Twenty Ten Theme. Thanks a bunch for the tut my friend :)

Reply

james January 4, 2011 at 9:09 pm

Great post, just what I was looking for! Thanks for the information :D

Reply

Robert D. February 8, 2011 at 11:43 pm

I found out that if you don’t change the default “Leave a reply” for comments on Wordpress you’ll be the unfortunate receiver of more spam messages, that’s because with google advance search ( that all spam bots can use ) the “allintext:Leave a reply” search (without the quotes) is giving a list of all wordpress blogs, where most-likely the machines will just post casino links automatically.

Hope this is useful,
Robert D.

Reply

Ποσειδωνιο March 3, 2011 at 12:32 am

i think that change is nesesarry and for spaming reasons…its better to have something different than leave a reply…..like…whats your opinion….more difficult for spammers to find your blog

Reply

Joe April 28, 2011 at 1:25 pm

thx for the link to install wp locally i have searched high and low thank-you

Reply

silah oyunlari May 8, 2011 at 1:30 pm

Thank you, very nice site, your site would follow with interest from Turkey,good work

Reply

Juno June 8, 2011 at 5:27 am

Nice share, I like wordpress very much,hope you keeping moving on this nice page.

Reply

Vinda June 18, 2011 at 3:19 pm

Great article, I always want to change my blog so it will be different. Thanks so much. I like this post/

Reply

Lisa rosa June 30, 2011 at 12:25 pm

I really like this post and it,s comments because these are full of advice

Reply

Andrew July 10, 2011 at 1:08 pm

Hi
thanks Great
But can you Please give me some guide lines for wordpress thesis,
How can i change “leave a comment” text..
thanks
Please email me when you write some articles or send me detail..
thanks

Reply

Kimi July 12, 2011 at 7:37 pm
MundoCaco August 7, 2011 at 11:18 am

OH THANKS!
I try to translate this almost drive me crazy!, 4 hours without results! XD

thank you very much in 15 minutes I did, thank you!

Reply

rubal saggu October 4, 2011 at 11:10 am

I was looking for this. Thanks a lot.

Reply

Jester Freeman December 30, 2011 at 12:26 am

Thank you for sharing this clear tutorial on how to change “leave a reply”. Actually, I am planning to customize this section, not only the words but also the box or the comment section box. Is this possible? I will use this to promote my controversial youtube videos.

Reply

Ronad Rutledge February 2, 2012 at 12:34 pm

Because of the way blogs are structures and how they work, sometimes, it can be said that Search Engine Optimization (SEO) for blogs is one step further than websites. While most of these techniques eventually also require a some tweaking, blogs need to be tweaked from a systems perspective – one single change to the blog template will affect all the individual posts.

Reply

Know better? Feedbacks, or Questions? Shoot! :-)

Please use a name instead of blog name or SEO stuff, otherwise it will be deleted right away.

About checkbox → See more my post:how to get rid of spam bots in wordpress post.

Thank you for visiting, you're always welcomed to be here again!

Previous post:

Next post: