Sunday, December 6, 2009

How To Delete Blogger Comments –Trash Icon Bug fixed!


COMMENT-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 AlhamdulillAh 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!

That’s All!

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.


Respected Readers:
As a 20 year old student, the only income I rely on is my pocket money. Bearing the running costs of MBT Blog has become really difficult. We educate thousands of bloggers a week with our tutorials. To help us go forward with the same spirit, a small contribution from your side will highly be appreciated.



If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you subscribe to our regular Email Updates!

Thanks for making this possible! Kindly Bookmark and Share it.
Technorati Digg This Stumble Facebook Twitter

16 comments:

Amit said...

Thank You very much for this post.i am just looking for that one for few monts.now i can see trash icon and also able to delete comments.
Thanks again

Mohammad Mustafa Ahmedzai on 2:34 PM, December 07, 2009 said...

@Amit

I am as happy as you are at the moment :>

rahman on 3:05 PM, December 07, 2009 said...

Thank you Mohammad. You are the dearest!

Sreejesh on 12:01 PM, December 08, 2009 said...

Hi Mohd. nice post.

Please create a Myblogger tricks forum for users to comments on non post related topics. and

I noticed an interesting website I've would like to share with you here---->> http://feedsweep.com/Default.aspx

Tasha said...

Hm, is there a way to change the trash icon?

Mohammad Mustafa Ahmedzai on 9:25 PM, December 13, 2009 said...

@tasha

1.Go To Edit HTML> Check the expand Widget Templates Box
2. Find this http://www.blogger.com/img/icon_delete13.gif
3. And change it with your own image url,



By the way why would you do so for only you can see the trash icon not users?

Tasha said...

Thank you! Oh, I'm just sick of the icon :)

Rajab said...

Mustafa Thanks a lot. You solved my biggest problem. God bless you.

I would agree with Tasha that icon is really boring ;p

chris said...

Hi, this is a completely unrelated post but since I can't find the tutorial I'm looking for, I thought I'll ask you here. I hope you don't mind :) Is there a way to change the position of 'older/newer/home' links? I know it's usually inside the main-wrapper box but I'd like very much for the links to be OUTSIDE the main box. I hope I'm making sense? I hope you can help. Thanks!

Mohammad Mustafa Ahmedzai on 12:54 AM, December 19, 2009 said...

@Chris


I am publishing a post on it along with some of my personal Image buttons for home, previous and older links. Check back soon.

You can ask off-topic questions in this page -> Blogger Help

chris said...

Thank you!

invest-pay.blogspot.com on 9:51 PM, January 10, 2010 said...

great work. since my blog is a do follow blog, i hate spammer who come in and drop non.relevant comment on it.
you would learn more if you visit my blog. on make money online

mary on 2:25 PM, February 02, 2010 said...

i love you <3

Khánh Trắng on 10:28 AM, February 08, 2010 said...

Thanks for your trick, It works well on my site right now!

Cheryl F. {The Lucky Ladybug} on 8:47 PM, April 08, 2010 said...

This doesn't work for me. I already had both exact pieces of code. No icon :(

Gem on 6:06 AM, May 29, 2010 said...

Thank you Thank you Thank you!

Confused? Feel free to ask

Your feedback is always appreciated. I will try to reply to your queries as soon as time allows.
Note:-
1. Please do not spam Spam comments will be deleted immediately upon my review.
2. For asking Off-Topic questions please comment on this page -> Blogger Help

Regards,
Mohammad

 

Recent Posts

Join Me On Facebook

532+ Followers

Join The Team!

Licensed Under CC

Creative Commons License

Recent Comments

Follow Me On Twitter

| My Blogger Tricks (MBT) © 2010. All Rights Reserved | Template Style by Mohammad Mustafa Ahmedzai |