dimanche 8 avril 2012

Add a Popular Posts Gallery just above your Blogger posts

The most strong and popular web design trend over last couple of years is a sliding horizontal panels also known as Sliders or Carousels. It's a very effective method to increase the web site usability and engage the user. This widget shows the most popular 10 posts on your blog just above your Blogger posts. You can see the Demo on my blog.
Let's start adding it

Before adding it you should know that this widget is not fully compatible with all templates, so please make a backup before making any changes to your blogger template. Now, follow these steps:

1. Go to Dashboard - Template - Edit HTML - click anywhere inside the code area and press the CTRL + F keys to open the Blogger' search box
    2. Type or paste this piece of code inside the opened search box:
    ]]>
    Note: you might need to click on the arrow next to it and after try to find ]]> again.

    3. Just above/before it, add the following code:
    #gallery{position:relative;margin:0 35px 20px;width:590px;height:126px;background:#ffffff}
    #gallery .belt{position:absolute;top:0;left:0;list-style-type:none}
    #gallery .panel{float:left;margin:20px;width:84px;height:86px;background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdEouWX11lXMBg_lffehv0eX4F1gS-MHULi0_QWO8ZTtHxc6F7K_dDjfjJUgOQpdl4xJjadBwxgahJOz-ZH7GdPrTWAY4QLODbW5wUrXZrdfsjuK2RujEm5k19pP03qSOADkQ6c0jf2BHr/s1600/bg-slider.png) bottom center no-repeat;overflow:hidden}
    #gallery .panel img{float:left;border:1px solid #DDD;margin:5px;width:72px;height:72px;background:#FFF;padding:0px}
    #gallery .panel img:hover{filter:alpha(opacity=50);-moz-opacity:0.5;-khtml-opacity:0.5;opacity:0.5}
    Note: you can adjust the size of gallery, changing the values in red (590 and 126).

    4. Now search for the following piece of code:
    5. Just above/before it, add this code:
    Next thing to do is to place the widget just above the blogger posts.

    6. Search for this code:
    ...or if you can'find it, search for this one:
    7. Just below it, add the following code:




     

     

    Note: delete the fragments of code in blue if you want this widget to be displayed in posts pages also.

    8. Preview and if everything is ok, Save the Template.

    Libellés : , , ,

    0 commentaires:

    Enregistrer un commentaire

    Abonnement Publier les commentaires [Atom]

    << Accueil