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
3. Just above/before it, add the following code:
4. Now search for the following piece of code:
6. Search for this code:
8. Preview and if everything is ok, Save the Template.
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
]]></b:skin>Note: you might need to click on the arrow next to it and after try to find ]]></b:skin> again.
3. Just above/before it, add the following code:
#gallery{position:relative;margin:0 35px 20px;width:590px;height:126px;background:#ffffff}Note: you can adjust the size of gallery, changing the values in red (590 and 126).
#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/AVvXsEhSTYORtR-GQT5uVVXRRgX-Ad1Js55hR5j6dT4NyEH5YsIgeUv3hqGzyKIaO8_OU21-EWgE74JNgyhUhVjhoLn0nJ9UdytQL8J29Er_P5_bJ_y7bUaIwHFfl2zemjaebtNm8L89oEoZfEb6/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}
4. Now search for the following piece of code:
</head>5. Just above/before it, add this code:
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js' type='text/javascript'/>Next thing to do is to place the widget just above the blogger posts.
<script src='http://helplogger.googlecode.com/svn/trunk/auto-slider.js' type='text/javascript'/>
<script type='text/javascript'>
//<![CDATA[
stepcarousel.setup({
galleryid: "gallery",
beltclass: "belt",
panelclass: "panel",
autostep: {enable:true, moveby:1, pause:6000},
panelbehavior: {speed:500, wraparound:true, persist:true},
defaultbuttons: {enable: true, moveby: 2, leftnav: ["https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtpi3z3uVWB7WN_Tmo2249XWTkz1MdvZoGzWnkgv-TmegHEqxxp9cAiWIrufeKSjAFbmP1xdm_ovPczYlxr9C7k_1CPsa2BPv9WHW-08hnKMcWK9DWetTF0ZnDnaUShrP2vSDfbn6c60jt/s1600/prev.png", -40, 36], rightnav: ["https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzsl9ShAPlCfxOECvGFtlsodDPTbg_NLRq_knlE2TbERdb6fRRV8mCuRnWZ94VcsJiMR0PdVmvVFvMgA0Td7mw-h3hfKvZXNd8z0D9PMMlmJNIh8vmaaGTB6waIRabjVi6lEknnGKneXUB/s1600/next.png", 2, 36]},
contenttype: ["external"]
})
//]]>
</script>
6. Search for this code:
<b:section class='main' id='main' showaddelement='yes'>...or if you can'find it, search for this one:
<b:section class='main' id='main' showaddelement='no'>7. Just below it, add the following code:
<b:widget id='PopularPosts2' locked='false' title='Popular Posts' type='PopularPosts'>Note: delete the fragments of code in blue if you want this widget to be displayed in posts pages also.
<b:includable id='main'>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<div style='margin-top:20px;margin-bottom:70px;margin-left:-20px;'>
<div id='gallery'>
<ul class='belt'>
<b:loop values='data:posts' var='post'>
<li class='panel'>
<b:if cond='data:showThumbnails == "false"'>
<b:if cond='data:showSnippets == "false"'>
<a expr:href='data:post.href' expr:title='data:post.title' rel='bookmark'><data:post.title/></a>
<b:else/>
<div class='item-title'>
<a expr:href='data:post.href' expr:title='data:post.title' rel='bookmark'><data:post.title/></a>
</div>
<div class='item-snippet'>
<data:post.snippet/>
</div>
</b:if>
<b:else/>
<a expr:href='data:post.href' expr:title='data:post.title' rel='bookmark'>
<b:if cond='data:post.thumbnail'>
<img expr:alt='data:post.title' expr:src='data:post.thumbnail'/>
<b:else/>
<img alt='no image' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh7PacUo8gEmLVMMCuqQxeaC8zamdDLO4oWRBrCGYxek9lRDkZ4w6dV5M-zehzUTPPsKEmcWRDshT3_3DanuKTf-QYGQdINRlZ_UsYGY1WE3Hw9NY0R8Y4NuVcatpC8K4tOGpSRmqkGiU_/s1600/no-image.PNG'/>
</b:if>
</a>
</b:if>
</li>
</b:loop>
</ul>
</div></div></b:if>
</b:includable>
</b:widget>
8. Preview and if everything is ok, Save the Template.
yeah...nice post...but it is not showing in posts.. means it is only working on homepage....
Pakistan's Best Site
what the heck is this... after installing this widget.. i remove it..and before instaling i already save html tempelate of my blog... but this popular post widget showing yet but now at the bottom of my blog and in vertical direct...shit.....and after reinstalling my old tempellate this widget still showing in vertical direction of my bottom of blog...give the solution...
Well, sorry. This widget is not compatible with all blogger templates. I see you have solved your problem.
i add it to my site http://themoviesfreak.blogspot.com
i have a question why some of my post in slidebar there is no image ? can u please help me to solve it. Thanks
That's because you haven't added any images to your posts. To change the default image, search for this address in your template (Design-Edit HTML):http://2.bp.blogspot.com/-mRxY2oEkLJc/T393wpt0z_I/AAAAAAAABrI/4blMjDaSOUY/s1600/no-image.PNG
and replace it with your own. Or add your own pictures to your posts. Good luck
Thanks Its Working Fine........ Here Url you can see it : http://fgirlspic.blogspot.in/
Working great on my both blog
http://lolsplanet.blogspot.com/
http://nannu4u.blogspot.in/
Thanks
It's showing up vertically? I mean the arrows are properly positioned, bu the image snippets are vertical. Help?
Thanks for such an informative article and the extensive explanation, it's been very useful for me as well as others also...
hey its a good one.. but plz lemme know how can i have background of the widget as black?
Is there a way to use this widget, but select which specific posts appear?
If anybody wants to see what it looks like before they apply it, take a look at my blog. I didn't change any of the code:
http://benendsbasement.blogspot.co.uk/
Thanks helplogger!
its great but i noticed some images not loading. does it take a while to update?
Thanks for share.
Thanks a lot
hey can i maximaize the image?
thank you very nice trick
after installing this widget.. . but this popular post widget showing yet but now this widget still showing .
plz solve it..
plzz.. tell me how you solve it?????
can't find help me
thanks.. done..
admin, i faces the same problem here.
i already added image in my post but only 1 image/post appear out of 10.
already follow the instruction u gave, but i dont know how to replace n put all the popular post image? please help me?
my blog - http://stk-deus.blogspot.com/
hi there, i have a question about gallery images, i've set up on the "photo" and "illustration" pages of my blog the gallery style posts, however, i would like to create a "blog" style posting system (the normal blogger posts) on the "blog" page, how to i code the html to make it an exception on the blog page? thanks!
thenaptree.blogspot.com
its great but cant we change the width?? its not enough in mine..when i move it to anothr place in layouts it doesnt work, thats why