BTemplates Blog

Tutorials, documentation and news about Blogger.

Change the message next to the number of comments on Blogger

By default, every post we publish on Blogger has a link with the number of comments (if it’s enabled, of course), and it says something like "0 Comments", and this isn’t the best presentation. Another problem comes when the post has just one comment, and the link shows "1 Comments", which is not logical at all. Finally, when the post has more than one comment, the link get a little bit of sense. But don’t worry about it, cause now we’re gonna teach you how to fix it.

1. Go to the “Layout” tab, also called “Design” from the desktop, and then go to “Edit HTML”. After this, check the “Expand widgets template” box.

Dashboard → Layout → Edit HTML → Expand widgets template

2. Search for the following code:

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

And replace it with the following:

<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 == 0'> Leave your comment </b:if> <b:if cond='data:post.numComments == 1'> 1 Comment </b:if> <b:if cond='data:post.numComments > 1'> <data:post.numComments/> Comments </b:if> </a> </b:if>

3. Now search for the following code:

<b:if cond='data:post.allowComments'>
<h4>
<b:if cond='data:post.numComments == 1'>
1 <data:commentLabel/>:
<b:else/>
<data:post.numComments/> <data:commentLabelPlural/>:
</b:if>
</h4>

And replace it with this:

<b:if cond='data:post.allowComments'> <h4> <b:if cond='data:post.numComments == 0'> Leave your comment </b:if> <b:if cond='data:post.numComments == 1'> 1 Comment: </b:if> <b:if cond='data:post.numComments > 1'> <data:post.numComments/> Comments: </b:if> </h4>

Both of the replacements are because of the link will show up twice: on main page and on each post’s page. The bold text can be changed for anythig you want tho show.

Vía: blogandweb.com

Related posts

13 Questions and comments on Change the message next to the number of comments on Blogger

Thinchhia January 11, 2010 at 8:44 am

Nice trick..thanks

David July 18, 2011 at 12:46 pm

Hey, thanks for posting this!
Really – it’s a great help :]

Paul Santosh August 14, 2011 at 5:23 am

Can I change the text 10 comments to 10 Awesome Comments?

Pantoffel September 28, 2011 at 2:16 pm

Thanks for this code, it worked … just what I was looking for.

Somu September 5, 2012 at 10:48 am

Thanks much… Managed to follow the instruction and make the changes 🙂

leiva September 28, 2012 at 11:28 am

very nice, amazing trick, installing now.

moncler jacka November 13, 2012 at 8:49 pm

Wow, wonderful blog post! you make blogging look easy. The overall look of your website is great, as well as the content! I like it very much,thank you.

tinnajer blog March 1, 2013 at 10:32 am

god bless you, thank you so much : ) im very happy now with your post about it, thanks

ebook shop June 13, 2013 at 3:18 pm

Change the message next to the number of comments on Blogger
is a great tip … thanks a lot 🙂

couponshawker July 7, 2013 at 8:48 am

Couponshawker providing the very best reliable promotions available on online stores.

Elesiss July 28, 2013 at 8:34 am

Nice tipss..thaaaanks

Apu September 27, 2013 at 1:35 pm

awesome trick…Thanks for sharing! :>

seshu September 30, 2013 at 7:26 am

No comments text is appearing over comment box ,how to resolve it ,iam waiting for your reply.
thank you

Leave a Reply