Monday, January 3, 2011

How To Show Total Comments In Every Post

In some blogs, we usually see an small icon with number beside post title. Like the name, the function is to shows the total comments on these posts. To show total comments in every post, you must follow the steps below.

1. Log in to your blogger account
2. Go to Edit HTML
3. Then, thick Expand Widget Templates
4. Search this code : <a expr:href='data:post.url'><data:post.title/></a>
Tips : to speed up the search, you can use Ctrl+F or F3
5. Then copy the code below, and paste under <a expr:href='data:post.url'><data:post.title/></a>
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgVawnHlzPShyphenhyphenBaGvghXYzV92bEmbffbaITfKtIO06iXt_DA2F6Bma-sHZEjl4RI8LvzOdsmzN9ZeZlzioalVR8qQ2WUSj8DcPOMWugfPGYWr4BE3MbOKyo_9A_1UVzj3dAMK930xSLbVl/s400/icon_comments.png'/>
<a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><b:if cond='data:post.numComments == 1'>1 <b:else/><data:post.numComments/></b:if></a>
</b:if>
6. Save now

No comments:

Post a Comment