Home CSS / Javascript / Widget

Blogger Most Commented Widget with Awesome Look

Blogger Most Commented Widget with Awesome Look - is a widget that display most commented or most discussed posts in a list. If any post of your blog get highest number of comments then it will get top. The principle is similar to the popular posts widget that gave rise to top list of posts with the most views.

Now comes to the main part, in this way who interested to add most commented or most discussed posts widget for his/her blogs to immediately add below codes. 

Go to Blogger Dashboard > Layout > Add a gadget > HTML/Javascript and copy past the below code and Save it.
.commentbubble {
background: #FC4E4E;
width: 49px;
float: left;
margin: 2px 20px 35px 0px;
font-weight: bold;
font-size: 1.3em;
text-align: right;
padding: 5px;
text-align: right;
color: #FFF;
position: relative;
top: 5px; }

font-family: FontAwesome;
content: "\f04b";
color: rgb(252, 78, 78); }

<script type="text/javascript">
function getYpipePP(feed) {
document.write('<ul style="list-style:none; ">');
var i;
for (i = 0; i < feed.count ; i++)
var href = "'" + feed.value.items[i].link + "'";
var pTitle = feed.value.items[i].title;
var pComment = + feed.value.items[i].commentcount;
var pList = '<li style="clear:both; border: 1px solid rgb(216, 216, 216);padding: 6px; line-height:2em; "> <div class="commentbubble">' +pComment + "&#160;&#160;</div>" + "<a href="+ href + '" target="_blank">' + pTitle ;
//to remove comment count delete this line
<script src="http://pipes.yahoo.com/pipes/pipe.run?

Note: msdesign92.blogspot.com replace it with your blog url and ShowHowMany=6 is the number of posts.

Now enjoy this awesome widget and keep sharing our posts. Thanks...

Read Also:

No comments

Post a Comment

to Top