Show number comments anywhere you like in Blogspot

I have a simple and easy trick to show the number of comments in your blog. You can show number of comments in each of your post. You can post it anywhere you like. Here is how to do that

<div align=’right’ 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’ style=’color:white’><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>
</div>

Copy and paste the code above anywhere you like. Make sure that you paste the above code just above or below the > tag.

If your blog already shows the number of comments in your post then you may like to change it’s position. You can search for the code above in your blog HTML and Cut/Paste it any where you like.

Hope this trick was easy any helpful. If you got confused then please comment me.

You can leave a response, or trackback from your own site.

Leave a Reply