Friday, November 27, 2009

How to add a clean slick featured content slider to your Blogger using jQuery UI

FeaturedContentSliderjQuery This script allows you to display the most popular or most interesting content of your blog in a nice intuitive way for your readers. Featured contents are commonly displayed on the index or front page, enabling readers to instantly find the “good stuff” of your blog. Furthermore, it offers the ability to customize appearance and functionality.

Click here to see a demo

Steps to follow:

1. Login into your Blogger dashboard > Layouts > Edit HTML

2. Insert the following section code below into your template right before the section code: ]]></b:skin>

border:5px solid #ccc; 

#featured ul.ui-tabs-nav{
    top:0; left:400px;
    padding:0; margin:0;
#featured ul.ui-tabs-nav li{
    padding:1px 0; padding-left:13px;
#featured ul.ui-tabs-nav li span{
    font-size:11px; font-family:Verdana;

#featured .ui-tabs-panel{
    width:400px; height:250px;
    background:#999; position:relative;
#featured .ui-tabs-hide{

#featured li.ui-tabs-nav-item a{/*On Hover Style*/
    color:#333;  background:#fff;
#featured li.ui-tabs-nav-item a:hover{
#featured li.ui-tabs-selected{ /*Selected tab style*/
    background:url('selected-item.gif') top left no-repeat;
#featured ul.ui-tabs-nav li.ui-tabs-selected a{

#featured ul.ui-tabs-nav li img{
    float:left; margin:2px 5px;
    border:1px solid #eee;
#featured .ui-tabs-panel .info{
    top:180px; left:0;
    height:70px; width: 400px;
    background: url('transparent-bg.png');
#featured .info h2{
    font-size:18px; font-family:Georgia, serif;
    color:#fff; padding:5px; margin:0;
#featured .info p{
    margin:0 5px;
    font-family:Verdana; font-size:11px;
    line-height:15px; color:#f0f0f0;
#featured .info a{
#featured .info a:hover{

Note: The above code references the external .png and .gif file "transparent-bg.png", "selected-item.gif”, which you need to download (right click, and select "Save As").

3. Next, insert the following section code below right after the section code: ]]></b:skin>

<script src='' type='text/javascript'/>

<script src='' type='text/javascript'/>

<script type='text/javascript'>
        $(&quot;#featured &gt; ul&quot;).tabs({fx:{opacity: &quot;toggle&quot;}}).tabs(&quot;rotate&quot;, 5000, true);

4. Navigate over to Layout > Page Elements to “Add a Gadget” and paste the following section code into the box

<div id="featured">
          <ul class="ui-tabs-nav">
            <li id="nav-fragment-1" class="ui-tabs-nav-item ui-tabs-selected"><a href="#fragment-1"><img alt="" src="/image1-small.jpg"/><span>15+ Excellent High Speed</span></a></li>
            <li id="nav-fragment-2" class="ui-tabs-nav-item"><a href="#fragment-2"><img alt="" src="/image2-small.jpg"/><span>20 Beautiful Long Exposure</span></a></li>
            <li id="nav-fragment-3" class="ui-tabs-nav-item"><a href="#fragment-3"><img alt="" src="/image3-small.jpg"/><span>35 Amazing Logo Designs</span></a></li>
            <li id="nav-fragment-4" class="ui-tabs-nav-item"><a href="#fragment-4"><img alt="" src="/image4-small.jpg"/><span>Create a Vintage</span></a></li>

        <!-- First Content -->
        <div id="fragment-1" style="" class="ui-tabs-panel">
            <img alt="" src="/image1.jpg"/>
             <div class="info">
                <h2><a href="#">15+ Excellent High Speed</a></h2>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tincidunt condimentum lacus. Pellentesque ut diam....<a href="#">read more</a></p>

        <!-- Second Content -->
        <div id="fragment-2" style="" class="ui-tabs-panel ui-tabs-hide">
            <img alt="" src="/image2.jpg"/>
             <div class="info">
                <h2><a href="#">20 Beautiful Long Exposure</a></h2>
                <p>Vestibulum leo quam, accumsan nec porttitor a, euismod ac tortor. Sed ipsum lorem, sagittis non egestas id, suscipit....<a href="#">read more</a></p>

        <!-- Third Content -->
        <div id="fragment-3" style="" class="ui-tabs-panel ui-tabs-hide">
            <img alt="" src="/image3.jpg"/>
             <div class="info">
                <h2><a href="#">35 Amazing Logo Designs</a></h2>
                <p>liquam erat volutpat. Proin id volutpat nisi. Nulla facilisi. Curabitur facilisis sollicitudin ornare....<a href="#">read more</a></p>

        <!-- Fourth Content -->
        <div id="fragment-4" style="" class="ui-tabs-panel ui-tabs-hide">
            <img alt="" src="/image4.jpg"/>
             <div class="info">
                <h2><a href="#">Create a Vintage</a></h2>
                <p>Quisque sed orci ut lacus viverra interdum ornare sed est. Donec porta, erat eu pretium luctus, leo augue sodales....<a href="#">read more</a></p>

Note: The above code references the external .jpg file "image4.jpg", "image2.jpg”, “image3.jpg”, “image1.jpg”, “image4-small.jpg”, “image3-small.jpg”, “image2-small.jpg”, “image1-small.jpg”, which you need to download (right click, and select "Save As").


If you want to enable pausing the slideshow on hover, simply add the following section code below instead of the one above in steps 3.

$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
function() {
function() {

**Tutorial completed

Labels: , , ,


Blogger Wesley Soccer said...

This comment has been removed by the author.

December 26, 2009  
Blogger Wesley Soccer said...

got it to work on one site...but not my everyday blog

January 03, 2010  
Blogger Blogspot Vision said...

hey wesley, sorry for the late reply. did you still need some help?

January 04, 2010  
Blogger CRS Entertainments said...

hey there im going to get this to work in a similar way to but i cant seem to get the featured content and the other two sidebars to co-exist on the same line, the featured content keeps pushing the sidebars to the line below... any ideas please?


January 05, 2010  
Blogger Blogspot Vision said...

hey joe, im not quite sure what you mean by the other two sidebars. are you talking about the video and audio sidebars?

January 06, 2010  
Anonymous CRS Entertainments said...

hey there, yeah thats what im going for the hiphopdx is someone elses site im using as a reference,

i can make a 3 column profile and add the two side bars but as soon as i add the featured content widget to two side bards move to the line below as if the featured content is too wide,

but even after been resized it still isnt working, is there perhaps a width figure that im missing?

January 07, 2010  
Blogger psydex said...

really nice , thank you!
one question , my background is dark (with white letters) , so how can i make the slider to be filled with dark collor and borders to be white?

January 23, 2010  
Blogger Muhalif Nesil said...

This comment has been removed by the author.

February 07, 2010  
Blogger Muhalif Nesil said...


Firstly, thank you very much for "featured content slider".

I did all directions on your blog. But i have a problem that enable pausing the slideshow on hover.

(I did not add the following section code below instead of the one above in steps 3.)

so where is the problem? :)

i mean it is pausing


February 07, 2010  
Blogger Paul Meara said...

Nice Slider but I have a problem. My slider is all grey and it wont go from picture to picture.

You can see it at

February 19, 2010  
Blogger Parteek Thapar said...

thanks......... check my site

May 21, 2010  
Anonymous Best mobiles reviews said...

It's very good slider thanks for sharing

Best Mobile Phones

November 19, 2010  
Blogger teste123 said...

Hello, I would like to know what sizes of images to be placed in locations "image4.jpg" and "image3-small.jpg" For I have set my "featured content slider" and the images do not appear when I insert the gadget. Thank you for reading my comment.

January 11, 2011  
Blogger sherlina halim said...

Pengen yang lebih seru ...
Ayo kunjungi wwwasianbet77com
Buktikan sendiri ..

Real Play = Real Money

- Referal 5 + 1 % ( seumur hidup ) .
- Cash Back up to 10 % .
- Bonus Royalty Rewards setiap bulan .

untuk Informasi lebih jelasnya silahkan hubungi CS kami :
- YM :
- WHATSAPP : +63 905 213 7234
- WECHAT : asianbet_77
- SMS CENTER : +63 905 209 8162
- PIN BB : 2B4BB06A / 28339A41

Salam Admin ,

June 03, 2015  
Blogger Kanye Co Jamila said...

Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from Javascript Training in Chennai . or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry. ES6 Training in Chennai

December 14, 2017  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home