Fixing the '1 comments' bug in Blogger Beta
Once again, Hans has dissected the Blogger Beta template and found a cure for the '1 Comments' bug. If it bothers you and you would really like to have it read '1 Comment', here is how to do it.
- Open the Blogger editor
- Go to 'Edit HTML'
- Expand Widgets Template
- Find:
<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> - Remove :<data:top.commentLabel/>
- Replace with: comment
Thanks (again) Hans!
4 Comments:
You are quick!
Read further on my next hacks:
How to replace "0 comments" with anything you like (such as "Be the first to leavce a comment!").
How to add a tooltip to those label-links in the post-footer (a message popping up such like "Click here to read more posts on this subject").
Blogging: Because There Is More To Explore!
Thanks for comments Vuelos baratos
Thank you so much for this fix! Here's a follow-up question: what about the "1 Comments" bug on the post page? When I click on a post title to get to the dedicated post page, it still says "1 Comments" in the header for the comments. Is there a way to fix this?
@anonymous, good question. I will have to look into this to see.