Tutorials, Tools and Resources for Blogger and WordPress

Recent Comments Widget For Blogger (blogspot)

Here’s how you can add a recent comments widget (gadget) on your Blogger blog.

Steps:

1. Go to your Blogger Dashboard > Layout > Page Element > Add a Gadget > HTML/JavaScript

2. Copy and paste the code below:

3. In the code, look for the line…

…src=”http://YourOwnB1og.blogspot.com/feeds/comments/default…

…and replace the blog address (indicated in color blue below) with your own blog address

…src=”http://YourOwnB1og.blogspot.com/feeds/comments/default…

(For blogs using custom domain)…

…src=”http://www.YourOwnB1og.com/feeds/comments/default…

4. Add a title. Save.

That’s it!

Optional settings:

How to change the number of comments
This widget is set to display 5 recent comments. If you want to change that number, just look for the number 5 in the code and replace it with the number of comments you want to be displayed. I recommend setting it between 4 and 8.

… a_rc=5;var m_rc=false;var n_rc=true;var…

How to change the number of characters (Excerpt)
This widget is set to display an excerpt of 100 characters of each comment. If you want to change that number, just look for the number 100 in the code and replace it with the number of characters you want to be displayed. *

n_rc=true;var o_rc=100;

*Recommended setting: 50 to 100.

How to display the date of comments
If you want to show the dates of comments, look for this line:

… a_rc=5;var m_rc=false;var n_rc=true;var…

and replace the false with true.

Get updates sent to your inbox! Please Subscribe via Email. Or Subscribe to the RSS feed with your Google Reader.
If you liked this post, please consider sharing it.

309 comments

  1. Mr. Smith /

    zona-ib.ru
    The five comments are not showing on my ‘RECENT COMMENTS’ widget in the sidebar on my blog. Is there something that I’m doing wrong? … Recent Comments Widget for Blogger. Visit i,Suman | My little place on the web… for other blogger hacks too.

  2. That’s awesome!
    i looking for easy script like this to add-in my blogger.
    excellent introduce process. :D

  3. Hi! I love the latest comment widget and I installed it without problems, however, it doesn’t seem to update to the actual latest comment. Can you help?

    • This is a common problem with the widget. It takes several minutes or sometimes a few hours to fetch the newest comments. But I just visited your blog and saw that the widget seems to be working just fine. It is now displaying your blog’s most recent comments.

  4. hello… thanks for the widget. well, i have the same problem. the widget didn’t automatically update, or is it because there’s no comment yet after i add this to my blog, so the widget wait for the newest comment?
    thank you

  5. Really Really Really great and thanksssssssss aloooooot for sharing a very beautiful widget for blogger. thanks once again.

  6. Thanks so much for the easy to use and install gadget! :D

  7. My-Tien /

    thank you so much :D

  8. Recent comments not working for some reason, it used to work before but not now

  9. I’d love to use this … but sadly it doesn’t seem to work. I’m sure it’s properly configured but no comments appear.

    • In order for the script to work, the JavaScript must be enabled on your browser. Then try installing the code again.

  10. cool site.. very helpfull, thanks for this post :)

  11. earlier recent comment widget used to work properly on my blog but now it doesn’t shows the comments. i ve tried reinstalling it several times. what’s the problem?

  12. does not work, looks like here are two lines in one each time. tryied to chnage padding values and tried to remove font properties but it’s still a mess … can you help ?

    • Make sure JavaScript is enabled on your browser in order for the script to work. Then try installing the code again.

  13. thanks so much! appreciate it :)

  14. thanks….
    its workin gr8 4 me
    thanks

  15. Do you have a script that would put the recent comments Below the comment box?

    Or a comment box with recent comments below it.
    I don’t want people to have to scroll down through all the comments to get to the comment box, plus I’d like the newest comment on top.

    Can this be edited for that?

Leave a Reply