92 How to change the comment link in your Blogger template
August 11, 2007 /

You can easily change the comment link at the bottom of your blog posts to read something different to "(n) Comments (where "n" is the number of comments). Instead, you could change it to say "Post your comments here", or even "Comments (4)", as I have done in this blog. This post explains how this can be achieved.

To change the text for your comment link, open the HTML editor for your blog template (Dashboard>Layout>Edit HTML), tick the "Expand widget templates" option, and find this section of code:

<span class='post-comment-link'>
<b:if cond='data:blog.pageType != "item"'>
<b:if cond='data:post.allowComments'>
<a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><b:if cond='data:post.numComments == 1'>1 <data:top.commentLabel/><b:else/><data:post.numComments/> <data:top.commentLabelPlural/></b:if></a>
</b:if>
</b:if>
</span>
The parts we need to change are highlighted in red. This basically tells Blogger that if there is one comment, to write only "Comment" beside the number one, and if there are 0 or any other number of comments, to instead write "Comments" (the plural form). If you don't want to show how many comments you have for each post, and instead only want to write a new phrase (eg: "Post a comment"), you should replace the whole of the red section with your chosen phrase, like this:
<span class='post-comment-link'>
<b:if cond='data:blog.pageType != "item"'>
<b:if cond='data:post.allowComments'>
<a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'>Post a comment</a>
</b:if>
</b:if>
</span>

However, if you'd prefer to retain the number of comments in the link, you may prefer to rearrange the sections instead, like this:

<span class='post-comment-link'>
<b:if cond='data:blog.pageType != "item"'>
<b:if cond='data:post.allowComments'>
<a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><b:if cond='data:post.numComments == 1'>Post a comment (1) <b:else/> Post a comment (<data:post.numComments/>)</b:if></a>
</b:if>
</b:if>
</span>
This will produce the following:
  • If there is one comment, it will read "Post a comment (1)"
  • If there are 0 comments, the link will read "Post a comment (0)"
  • If there are more than one comment, it will read "Post a comment (n) where "n" is the number of comments already present.

You can of course change the text to read anything you want. If you prefer not to have the brackets around the number of comments, simply remove them from the code.

I hope this tutorial has helped you better understand how to change the comment link in your posts. Please feel free to leave your own comments and opinions below!

Author: Amanda Kennedy

Amanda is a professional blogger and web designer living in Sheffield, United Kingdom.

In addition to curating Blogger Buster, you can find Amanda on Twitter, Facebook or add her to your circle on Google+.

Like to share?

You may also like to subscribe to Blogger Buster's RSS feed or receive free email updates of our latest posts.

92 Comments:

  1. Hi , I found http://www.winsoftwares.net good software development and website design company in india.I Think you people should also visit this link and give your feedback and comments on the http://www.winsoftwares.net . You can give your comments on conact us page click here to reach http://www.winsoftwares.net.

    ReplyDelete
  2. Thanks a million for this tutorial! It was EXACTLY what I needed and let me customize by blog even further. A million thanks!

    ReplyDelete
  3. Hi Amanda! This worked the way that I wanted it, after a little tweaking here and there!

    However, I noticed that when my post displayed is in full, with comments below, it would still show "1 comments" instead of the changes that I already made (in the adjustment to plural/singular and in a different label for comments). This also happens when Post a Comment is clicked.

    Is there any way to make the changes more consistent?

    Thank you so much!

    ReplyDelete
  4. I found the tutorial very useful too. I'll start to use some of the tips to make my blog better.

    ReplyDelete
  5. Hi Amanda,

    Your blog is really very informative. I am in search of how to put the comment link below the title of the post as well as the author of the post. Im modifying the Aspire for blogger but still cant seem to get it. Could you please make a tutorial on how to manipulate the date, label and post (and icons) just below the title post? Thank you very much.

    Minnie

    ReplyDelete
  6. Thanks so much, I have spent about 2 hours looking for something that would tell me how to do this! I am so excited, thanks so much!

    ReplyDelete
  7. Thanks, been looking for this for ages. really easy instructions. Cheers

    ReplyDelete
  8. Not really sure of the issue, but I gotten error message every time I've tried to do this. Any reason why I would be getting a bX-csg4wm error code?

    ReplyDelete
  9. If I want to complete remove the link, how to do it?

    I added the "how to comment from beneath your post" widged, an now the "post a comment link" is not nescessary, and it is in the way.

    Sincerely.

    ReplyDelete
  10. Oh you rock! I've been trying for days to figure this out. Thank you :)

    ReplyDelete
  11. Thank you Amanda. More power to you. :)

    ReplyDelete
  12. Thank you, Amanda.
    Love your tutorials. Keep up the good work.
    All the best...
    *^-^*

    ReplyDelete
  13. Thanks! for your information. very helpful

    ReplyDelete
  14. Thank you! This is just what I was hoping to find. I think I'm going to be trying to apply this a few other places.

    ReplyDelete
  15. thank you for posting this! great help!

    ReplyDelete
  16. Really helpful tutorial. Thanks.

    Is there a way to tweak the code so it will only show "Post a Comment" when there are no comments?

    ReplyDelete
  17. How i change size the comment link

    ReplyDelete
  18. Thanks! This post is great! so helpful! It was so helpful ... I also removed the parenthesis from the number of comments and placed the num. of comments before the text... but your information was FUNDAMENTAL so I could just do those changes! ;)

    ReplyDelete
  19. Hi Amanda I would like to change the color of the onclick comment-link directly in the javascipt code, what should I write ?

    thanks

    ReplyDelete
  20. Thanks for sharing this. It helped me tweak my blog.

    ReplyDelete
  21. Hello admin.
    Very nice list of blogs! Thank you for this.

    ReplyDelete
  22. Is there anyway to increase the size of the font or make it bold? or maybe replace the link with an icon?

    ReplyDelete
  23. Is there a way to change the button's texts under the box? I mean the "post comment" and "preview" buttons.

    ReplyDelete
  24. Thanks! Really helped me out with this one!

    ReplyDelete
  25. Thankyou very much. This is the exact customisation I was looking for.

    ReplyDelete
  26. Very useful, thank you!! xx

    ReplyDelete
  27. Thank you very much. Very helpful indeed. I tweaked mine a bit to show "Please leave a comment" if 0 and "Please leave a comment (#)" if there are any comments. Apart from the text, you have to change the 1 in the condition for 0 (doesn't allow me to post the codes here). And I think it works!

    ReplyDelete
  28. There is an easier way to do this.

    <a href="BLOGSITE-ADDRESS#comments" will redirect directly to the comments on a specific post

    You can also "View the Page Source" by right clicking on the browser and search for "name="
    Look for the closest name= to the place on the page you like and use it on the <a href

    ReplyDelete
  29. It's a good article! You let me learn more about it! In part time,I always log in the same websites to learn knowledge!Everybody all could communicate on . If want,please join us!

    ReplyDelete
  30. 3d, modelleme, animasyon, reklam filmi, mimari görselleştirme, render, 3d karakter, 3d karakter animasyonu, mimari çizim, dış mimari,iç mimari, tanıtım filmi, 3d mimari, 3d mimari modelleme, 3d mimari animasyon, 3d karakter, 3d karakter modelleme, 3d karakter modelleme, reklam filmleri, reklam firmaları, reklam şirketleri, reklam ajansları, Müzik Video Klipleri, Kurgu Montaj, Kurumsal İletişim, Medya İletişim, Reklam Satın Alma, Medya Planlama, Sponsorluk

    http://www.mcmajans.com

    ReplyDelete
  31. Thank you very much for this code! It works wonders! Just one thing: Can I add another condition to it? If there are 0 comments, could I post something like "Be the first one to comment!" Instead of having "Post a comment (0)"

    ReplyDelete
  32. This post is great! so helpful.. It was so helpful.. Thanks for sharing..

    ReplyDelete
  33. im wan my number post infront the text,how?email me...wantongxin@gmail.com

    ReplyDelete
  34. Your site contain a many useful information. These will surely be a great help. Thanks!

    ReplyDelete
  35. thanks so much super helpful :)

    ReplyDelete
  36. where have cheap Juicy Couture Outlets?I want to buy some Juicy Couture such as Juicy Couture Handbags,Juicy Couture Tracksuits and so on.I need free shipping and fast delivery.juicy couture outlet

    ReplyDelete
  37. Thank you very much, helped a lot!!

    ReplyDelete
  38. Very Good it really Helps me
    ThX

    Check my Video Template for blogger
    www.tubeislamic.blogspot.com

    ReplyDelete
  39. I am thoroughly convinced in this said post. I am currently searching for ways in which I could enhance my knowledge in this said topic you have posted here. It does help me a lot knowing that you have shared this information here freely. I love the way the people here interact and shared their opinions too. I would love to track your future posts pertaining to the said topic we are able to read.

    ReplyDelete
  40. Thanks for taking the time to discuss this, I feel strongly about information and love learning more on this. If possible, as you gain expertise, It is extremely helpful for me. would you mind updating your blog with more information

    ReplyDelete
  41. I've been having this problem for a week now. I've tried everything recommended except new browser. I use IE8.

    ReplyDelete
  42. I am greatly impressed with the quality of your web-site, thank you very much.

    Regards David Allen

    ReplyDelete
  43. thanks
    www.full-aps.blogspot.com

    ReplyDelete
  44. Putting on cozy and exact moncler daunenjacke in winter is actually a sort of sharing.

    We is aware, normally, moncler daunenjacke with apparel pattern and colorific form

    could have an influence on our stature's luxury. As soon as we know this point, we can

    easily improve apparel to hide scars, and cultivate our spirit look. We virtually can

    not see an excellent stature in our genuine life, nonetheless Moncler jackets relieved

    that problem at once, developing our psychological overall look. These moncler outlet

    are ideal for adult males and not other jackets to produce you seems trendy. Moncler

    coats will also be to be had for navy blues, greys, pink for very little women. The

    designers are sensible plus they make down jackets look incredibly trendy. moncler

    jacken's designer always make sure that the wearers can enjoy the nature in cold wind

    with stylish design. You won't be capable of share your spiritual experiences as

    readily if you you should not have on apparel that flatters you and also turn you into

    seem available and appealing.

    ReplyDelete
  45. Epic post buddy - it helped me out a lot, keep up the good work.

    ReplyDelete
  46. Hey, very nice site. I came across this on Google, and I am stoked that I did. I will definately be coming back here more often. Wish I could add to the conversation and bring a bit more to the table, but am just taking in as much info as I can at the moment.

    iso 9000

    ReplyDelete
  47. Hi,
    THanks for the good work... I had one question probably a stupid question. But appreciate your help.. Your all comments from visitors are stays open with the comment box. How can you do that ? Please Help.
    Thanks,

    ReplyDelete
  48. Is there anyway to increase the size of the font or make it bold? or maybe replace the link with an icon?

    ReplyDelete
  49. We should keep in mind that many on the right side of the argument feel secure in their jobs and their possessions.

    ReplyDelete
  50. Chino Hills is providing its services in Chicago to make you health, smart and fit. And it is also offering so much packages which everyone can avail.

    ReplyDelete
  51. The configuration baseline is further compounded when taking into account the evolution of specifications over a given time period.

    ReplyDelete
  52. Congratulations on your accomplishment. The sense of wanting to help, but not knowing how or where, is something a lot of us are going through.

    ReplyDelete
  53. I seemed to be in search of crucial information regarding this subject. The results was essential as We’re gonna launch by myself portal. Many thanks for providing military services weapons link around my business.


    amd Athlon

    ReplyDelete
  54. There has been a desire to escape from participating in a circus of gossip that have contributed to the fall in the situation where it is today.

    ReplyDelete
  55. It cannot be overstated that the importance of family and community ties as social networks and support in the new environment.

    ReplyDelete
  56. Comfortable Ugg Classic Short Boots Not easy to use language to express, although according to the understanding of her character, we have in mind a general view of this, only Ugg Australia Discount Code Clean, most family's love? I have felt the soul there is hope for the punishment? - I do not want to ensure that - however cheap ugg boots for kids

    ReplyDelete
  57. great site. know that omega 3 krill oil is very beneficial to our health and i recommend you all to try it.

    ReplyDelete
  58. great information. i was looking for websites on pqq supplements for health and found this. thank you

    ReplyDelete
  59. There are many things should be taken into consideration, but you've made a good point here. Thanks a lot for that. I will follow your way soon.

    ReplyDelete
  60. great site, it is useful! thank you for your sharing! bvcbvc

    ReplyDelete
  61. This doesent work i honestly scrolled though a bagillion times i can not find "Post Comment" It just says this..where do i change my post comment

    /* Comments
    ----------------------------------------------- */
    .comments .comments-content .icon.blog-author {
    background-repeat: no-repeat;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1FB9sLFwMeCjjhcOMAAAD+SURBVDjLtZSvTgNBEIe/WRRnm3U8RC1neQdsm1zSBIU9VVF1FkUguQQsD9ITmD7ECZIJSE4OZo9stoVjC/zc7ky+zH9hXwVwDpTAWWLrgS3QAe8AZgaAJI5zYAmc8r0G4AHYHQKVwII8PZrZFsBFkeRCABYiMh9BRUhnSkPTNCtVXYXURi1FpBDgArj8QU1eVXUzfnjv7yP7kwu1mYrkWlU33vs1QNu2qU8pwN0UpKoqokjWwCztrMuBhEhmh8bD5UDqur75asbcX0BGUB9/HAMB+r32hznJgXy2v0sGLBcyAJ1EK3LFcbo1s91JeLwAbwGYu7TP/3ZGfnXYPgAVNngtqatUNgAAAABJRU5ErkJggg==);
    }

    .comments .comments-content .loadmore a {
    border-top: 1px solid $(widget.alternate.text.color);
    border-bottom: 1px solid $(widget.alternate.text.color);
    }

    .comments .comment-thread.inline-thread {
    background-color: $(post.footer.background.color);
    }

    .comments .continue {
    border-top: 2px solid $(widget.alternate.text.color);

    ReplyDelete
  62. That is all it says for comments ??????

    ReplyDelete
  63. I seriously love the best way information presented in the post. I have included in you inside my social bookmark…and I’m waiting your future post. Azelex

    ReplyDelete
  64. Mens Watches View our large stock of luxury men s watches starting from £50 All our watches come with free delivery and 0 finance ladies watches

    ReplyDelete
  65. Thanks so much for this!

    ReplyDelete
  66. It is very nice to see this blog and it's really informative for the readers. It is really nice to see the best information presented in an easy and understanding manner.
    Thank you.

    ReplyDelete
  67. I can't find it in my HTML code, and could you visit my blog and tell me where in the code it would be? My blog-comicsandcartoonsworld.blogspot.co.uk.

    ReplyDelete
  68. thanks for tips, i want to modification commment my blogs

    ReplyDelete

Great! You've decided to leave a comment! Please bear in mind that comments are often moderated and that rel="nofollow" is in use and spammy comments will be deleted. Let's have a meaningful conversation instead. Thanks for stopping by!

Browse through the Archives

All existing posts are still available to view while I'm working on the site, albeit seen in a much simpler interface. Feel free to browse through the archives to find tutorials, templates and articles to help you build a better blog:

Blog Archive

© Blogger Buster 2010 Home | About | Contact | Hire Me