Monday, 11 September 2006

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.
  1. Open the Blogger editor
  2. Go to 'Edit HTML'
  3. Expand Widgets Template
  4. 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>
  5. Remove :<data:top.commentLabel/>
  6. Replace with: comment

Thanks (again) Hans!



post signature

No comments:

Post a Comment