How to add Popular Post Widget for Blogger/Blogspot


Popular Post Widget for Blogger is a good Bloggers widgets that show your blog popular post on sidebar and its show your visitor that whats posts are good and whats is liking your visitor so try this widget and you enjoy.

Step 1 : Log in Blogger Account

Step 2 : Go to Layouts




Step 3 : Now in "Add page Element" Click on "Add a Gadget"


Step 4 : Click on "HTML/JavaScript" and Add the below code there and Save



<script type="text/javascript">
function pipeCallback(obj) {
document.write('<ul style="text-transform: capitalize;">');
var i;
for (i = 0; i < obj.count ; i++)
{
var href = "'" + obj.value.items[i].link + "'";
var item = "<li>" + "<a href=" + href + ">" + obj.value.items[i].title + "</a> </li>";
document.write(item);
}
document.write('</ul>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=28a6afad7c6ba1288c1b738277e42385&url=http%3A%2F%2Fwww.about-tutorials.blogspot.com&num=10" type="text/javascript"></script>

Note: Please replace this link www.about-tutorials.blogspot.com whith your blog link.
Your Url/Domain Without http://
Example: YourBlogAdderss.blogspot.com or www.YourUrl.com
Now click Save



G+

0 comments:

Post a Comment