Saturday, 18 August 2012

Add new widget for disply poular post in blogger sidebar

Now add this special widget on your blogger sidebar to display Most popular post . this widget is very cool and stylish now i am giving you simple step so that you can add this.

Now follow simple step to add this widget -->>>>>

* Go to blogger dashboard  and click to design tab now you are here--->>> Add element

* Now click to Add element and when open new window select HTML/JAVASCRIPT from list.
* And copy below code and paste in blank box and click to SAVE button.



<!-- Popular posts with comment count Start --> 
view sourceprint?
 <script type="text/javascript">
 function getYpipePP(feed) {
  document.write('<ol style="">');
  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>" + "<a href="+ href + '" target="_blank">' + pTitle;
  document.write(pList);
  document.write(pComment); //to remove comment count delete this line
  document.write('</a></li>');
  }
  document.write('</ol>');
  }
  </script>
  <script src="http://pipes.yahoo.com/pipes/pipe.run?
  YourBlogUrl=<span style="color: blue;">http://www.your.blogspot.com</span> &ShowHowMany=10
  &_id=<span style="color: blue;">Your pipe id</span> &_callback=getYpipePP
  &_render=json"
 type="text/javascript"></script>
 <span style="font-size: 80%; float:right;"><a href="http://www.wierdwalker.com/2010/09/popular-post-widget-for-blogger.html" target="_blank">Make your own</a></span>
 <!-- Popular posts with comment count End -->

* Now save your code you are done.

1 comment:

Philwebservices said...

This is so nice. I should try using it.