How To Delete Blogger Comments –Trash Icon Bug fixed!




Many bloggers who use un-official blogger templates can’t delete the comments on their blog because they can’t see a trash icon or dustbin icon. You may have seen this bug in Buster template and Church template also. Many people have suggested various methods of deleting the comments without a trash icon but the question is why can’t you see a Comment Trash Icon?



It was always a headache for me on how to solve this issue. With the release of Cute Box template my developing skills some how improved. The reason why you can not see a trash icon below your post comments while logged into blogger account is more simple than we expected. There is a small piece of missing code that is responsible for making the dustbin icon appear. This is what you need to do,

Delete Blogger Comments Easily By Fixing The Trash Icon Bug

  • Go To Blogger > Layout > Edit HTML
  • Check The “Expand Widget Templates” box at the top-right-corner
  • And search for this piece of code,
<dd class='comment-footer'>
  • Just below <dd class='comment-footer'>  paste the code below,
<span class='comment-timestamp'>
              <b:include data='comment' name='commentDeleteIcon'/>
            </span>
  • Save your template and preview any of your blog post to see a beautiful trash icon below each comment :)
 comment-trash-icon

Troubleshoot

If for some reason you still can not see a trash icon below your blog comments then follow an additional step.
  • Inside Edit HTML search for ,
<b:includable id='commentDeleteIcon' var='comment'>
  • You will find a similar big chunk of code below it,
<b:includable id='commentDeleteIcon' var='comment'>   <span expr:class='&quot;item-control &quot; + data:comment.adminClass'>
    <a expr:href='data:comment.deleteUrl' expr:title='data:top.deleteCommentMsg'>
      <img src='http://www.blogger.com/img/icon_delete13.gif'/>
    </a>
  </span>
</b:includable>
If you are not able to see a trash icon then most probably this piece of code will not be well scripted. Simply replace your current code with the bolded green code shared above.
  • Finally save your template to really see a trash icon this time!
I hope this will be a great sigh of relief to many Blogger designers and developers. This will surely help in dealing spam comments more effectively. I request everyone to kindly link back if you wish to share this tutorial with your readers.

No comments:

Post a Comment