Normal comment count show same label for singular and plural comment count. For example, if your post has one comment, it will show "1 comments" not "1 comment". If your post has no comment, it will show "0 comments" not "No comments".

Follow below steps to customize comment count in post.

1. Goto blogger.com & login


2. On Dashboard, click Layout > Edit HTML




3. On Edit Template, tick Expand Widget Templates
and find below tags (based on Minima template)

<span class='post-comment-link'>
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<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>

replace with
<span class='post-comment-link'>
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<b:if cond='data:post.allowComments'>
<a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick' expr:title='&quot;Comment on &quot; + data:post.title'><b:if cond='data:post.numComments == 0'>No Comments<b:else/><b:if cond='data:post.numComments == 1'>1 Comment<b:else/><data:post.numComments/> Comments</b:if></b:if></a>
<b:else/>Comments Off
</b:if>
</b:if>
</span>

from (click the image to enlarge)


to (click the image to enlarge)


4. Save Template


You can change No Comments to Leave a Comment, No Responses or Be the first to comment. Also 1 Comment to One Comment or One Response etc. It's up to you.

[back to top]

One Response to "Customize comment count in post"

  • Yeah its true by default normal comment count show same label for singular and plural comment count. Now i customize my comment label from small piece of code.Its very interesting.Thanks for sharing.

Leave a Reply

Articles

Comments

Recent Customizations

Recent Tips

Recent Tricks