Add Rotating Slides Of Popular Posts Widget To Blogger

popular posts sliderMy brother Abu-farhan has created an amazing script that transforms the popular posts widget provided by blogger into a a vertical content slider  that updates automatically. His script really impressed me and I thought of sharing this great slideshow widget with all of you. It is extremely easy to install this widget on blogger. You only need to paste the code inside a HTML/Javascript widget. This new script works on all major browsers and can easily be customized. I have further edited the code to give it a little better color theme. No thumbnail images will appear if you have not added any image in your posts. Posts which are viewed most will be picked by blogger stats widget and displayed through this new gadget.


Live Demo

Adding Popular Posts Rotating Slides Widget

  1. Go To Blogger > Design
  2. Click add a gadget
  3. Choose Popular Posts Widget provided by blogger
  4. Keep post number greater than 4
  5. Save your widget
  6. Now select an HTML/Javascript widget
  7. Paste the following slide code inside it,

<style type="text/css" media="screen">

#PopularPosts1 {
padding:0px 0px;


#PopularPosts1 ul {
list-style-type: none;
padding: 0px 0px;
margin:10px 0px 0px 10px;

#PopularPosts1 li {
padding: 5px 5px;
margin:0px 0px 5px 0px;
overflow: hidden;
background:#fff url( repeat-x;
border:1px solid #ddd;

#PopularPosts1 li .item-title {

#PopularPosts1 li .item-title a {
font:bold 12px verdana;

margin:0px 0px;
padding:0px 0px 2px 0px;

#PopularPosts1 li img {
border:2px solid #7CA2C4;

#PopularPosts1 li .item-snippet {
font-family:Tahoma,Arial,verdana, sans-serif;
padding:0px 0px;
margin:0px 0px;

#PopularPosts1 .item-snippet a,
#PopularPosts1 .item-snippet a:visited {
    text-decoration: none;

#PopularPosts1 .spyWrapper {
    height: 100%;
    overflow: hidden;
    position: relative;

#PopularPosts1 {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;

.tags span,
.tags a {
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;

a img {
    border: 0;

<script src="" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
$(function () {
    $('.popular-posts ul').simpleSpy();
<script src="" type="text/javascript"></script>


Keep the two widgets together. One on top of another as shown below,

popular-posts widget


Make Changes To Colors and Fonts

Not all of you uses a white background for your blogs and some of you may wish to have complete control over the appearance of the widget. I am listing below important areas which you can edit to let the widget perfectly blend your template.

  • To Change Widget container height edit height:310px;
  • To change the small rectangles width edit width:310px
  • To change width of the text snippet then edit width:290px;. Keep this width 20px smaller than the rectangles width. For example in this widget I have kept rectangles width=310px; and snippet width=290px;
  • To change link title color and font size edit color:#7CA2C4;
    font:bold 12px verdana;
  • To change thumbnail image's border colour and size edit border:2px solid #7CA2C4
  • To change the snippet text's font size, family and colour then edit the yellow highlighted code

What if your template background colour is black or dark?

In such a case replace the following code,

background:#fff url( repeat-x;

with this,


Replace #ffffff with your background color. Use our color generator tool.

I hope you like this widget and find it useful. Please let me know if you needed any help. Peace brothers. :>

Facebook Comment

Blogger Tips and TricksLatest Tips And TricksBlogger Tricks