How to Add Popular Posts Widget to Blogger

Show the popular stories and articles of your blog in your sidebar. Give your visitors a reason to stay on your blog. Add popular posts widget in Blogger. It work on the total number of comments a post gets. So we can also call it as 'Most Commented Widget'.

Many of you have expressed an interest in this widget, so I thought to give you the tutorial on it. See an example on Popular Posts page of my blog.

You can get this widget form PostRank and Feedjit. Just register your blog and get the widget.

Otherwise there is also a JavaScript available for the popular posts widget for Blogger.

Go to Blogger's Design > Page elements tab and click “Add a Gadget” and select “HTML/JavaScript” and copy paste the following code:

<script language='JavaScript'>
aBold = true;
numposts=200;
maxshowresult=5;
home_page = "http://simplebloggertutorials.blogspot.com/";
</script>
<script src='http://dl.getdropbox.com/u/708209/scriptabufarhan/popularpost/popularpostblogger-min.js' type='text/javascript'></script>

Now for a tutorial to how to customize this widget:
1. Change the link of home_page to your homepage name.
2. numposts is the number of posts you got.
3. maxshowresult is the maximum result that will be shown.
Change this accordingly.

You can also download the script and put it on your server or free JavaScript hosts:

  • http://sites.google.com/site/abufarhansite/home/popularpostblogger-min.txt
  • http://www.hotlinkfiles.com/files/2709999_xqhsi/popularpostblogger-min.js
  • http://dl.getdropbox.com/u/708209/scriptabufarhan/popularpost/popularpostblogger-min.js

The credit goes to Abu Fahran for this lovely widget.

Popular posts from this blog

How to Add Extra Gadget/Widget Section to Blogger Header

Blogger Dynamic View Templates Pros and Cons

Add Google Web Fonts to Blogger