Hi guys, Today I'm going to show you How to Add Recent Comments Widget with Avatar to Blogger Blog. This is one of the most used blogger widgets and looks really cool. This widget will show recently published comments with rounded avatar.
How to Add Recent Comments Widget
- Go to Blogger > Layout
- Click on 'Add a Gadget'
- Choose HTML/Javascript
- Copy paste the code given below inside it.
<style type="text/css">
ul.w2b_recent_comments{list-style:none;margin:0;padding:0;}
.w2b_recent_comments li{background:none !important;margin:0 0 6px !important;padding:0 0 6px 0 !important;display:block;clear:both;overflow:hidden;list-style:none;}
.w2b_recent_comments li .avatarImage{padding:3px;background:#fefefe;-webkit-box-shadow:0 1px 1px #ccc;-moz-box-shadow:0 1px 1px #ccc;box-shadow:0 1px 1px #ccc;float:left;margin:0 6px 0 0;position:relative;overflow:hidden;}
.avatarRound{-webkit-border-radius:100px;-moz-border-radius:100px;border-radius:100px;}
.w2b_recent_comments li img{padding:0px;position:relative;overflow:hidden;display:block;}
.w2b_recent_comments li span{margin-top:4px;color: #666;display: block;font-size: 12px;font-style: italic;line-height: 1.4;}
</style>
<script type="text/javascript">
//<![CDATA[
// Recent Comments Settings
var
numComments = 5,
showAvatar = true,
avatarSize = 60,
roundAvatar = true,
characters = 40,
showMorelink = false,
moreLinktext = "More »",
defaultAvatar = "http://www.gravatar.com/avatar/?d=mm",
hideCredits = true;
//]]>
</script>
<script type="text/javascript" src="http://widgets.way2blogging.org/blogger-widgets/w2b-recent-comments-gravatar.js"></script>
<script type="text/javascript" src="http://www.trickyblogger.com/feeds/comments/default?alt=json&callback=w2b_recent_comments&max-results=5"></script>
- Replace www.trickyblogger.com with your Blog URL.
- Save Widget
To change the number of comments, Change 5 with the desired number.
If you like this widget then please share this post. Don't forget to leave a comment below.
Most of the site are sharing the way to add Blogger Recent Comments Widget but there are not allowed with profile picture. your given way is the right way to add right Blogger Widgets.
ReplyDeleteThanks for visiting.
DeleteThanks for the info ...
ReplyDeleteYou're Welcome :)
DeleteGreat :)
ReplyDeleteThanks
Delete