Add Amazing jQuery Featured Post Slider To Blogger



One of our regular readers requested this tutorial in the comment section saying:

So here it is bud. You can also request more tutorials using the comment section. I'll try my level best to provide you with what you want :). So here is the featured slider that we will be adding to our blog.

DEMO
 Lets get started.

Step 1:

Go to Design >> Edit HTML and search for the following code

</head>
 Now just above this code, add the code in this download link below.

Download

Step 2:

Now Go to Design again and make a new HTML/ JavaScript gadget. And place the following code in it.


<div id="slider">
  <script type="text/javascript">
stepcarousel.setup({
galleryid: 'smooth_sliderc', //id of carousel DIV
beltclass: 'smooth_sliderb', //class of inner "belt" DIV containing all the panel DIVs
panelclass: 'smooth_slideri', //class of panel DIVs each holding content
autostep: {enable: true, moveby:1, pause:7000},
panelbehavior: {speed:500, wraparound: false, persist:false},
defaultbuttons: {enable: true, moveby: 1, leftnav: ['http://www.shoutmeloud.com/wp-content/plugins/smooth-slider/images/button_prev.png', -8, 70], rightnav: ['http://www.shoutmeloud.com/wp-content/plugins/smooth-slider/images/button_next.png', 0, 70]},
statusvars: ['imageA', 'imageB', 'imageC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
contenttype: ['inline'], //content setting ['inline'] or ['external', 'path_to_external_file']
onslide:function(){
 jQuery("#smooth_sliderc_nav li a").css("fontWeight", "normal");
 jQuery("#smooth_sliderc_nav li a").css("fontSize", "12px");
 var curr_slide = imageA;
   jQuery("#sldr"+curr_slide).css("fontWeight", "bolder");
 jQuery("#sldr"+curr_slide).css("fontSize", "17px");

  }
})
</script>
  <noscript>
  </noscript>
  <div id="smooth_sldr">
    <div id="smooth_sldr_items">
      <div id="smooth_sldr_body">
        <div id="smooth_sliderc">
          <div class="smooth_sliderb">
            <div class="smooth_slideri">
              <!-- smooth_slideri -->


/***---Post 1 Editing Area---***/ 


<a href="Post 1 Link"><img class="smooth_slider_thumbnail" src="Post 1 Image Link" alt="Post 1 Alternative text" /></a>
              <h2><a href="Post 1 Link">Post 1 Title</a></h2>
              <span>Post 1 Description.</span>
              <p class="more"><a href="Post 1 Link">Read More</a></p>
              <!-- /smooth_slideri -->
            </div>
  

/***---Post 2 Editing Area---***/ 
          
<div class="smooth_slideri">
              <!-- smooth_slideri --><a href="Post 2 Link"><img class="smooth_slider_thumbnail" src="Post 2 Image Link" alt="Post 2 Alternative text" /></a>
              <h2>
                <a href="Post 2 Link">Post 2 Title</a>
              </h2>
              <span>Post 2 Description</span>
              <p class="more"><a href="Post 2 Link">Read More</a></p>
              <!-- /smooth_slideri -->
            </div>
   
 
/***---Post 3 Editing Area---***/        

<div class="smooth_slideri">
              <!-- smooth_slideri -->
<a href="Post 3 Link"><img class="smooth_slider_thumbnail" src="Post 3 Image Link" alt="Post 3 Alternative text" /></a>
              <h2><a href="
Post 3 Link">Post 3 Title</a></h2>
              <span>Post 3 Description</span>
              <p class="more"><a href="
Post 3 Link">Read More</a></p>
              <!-- /smooth_slideri -->
            </div>
            <!-- /smooth_slideri -->
          </div>
        </div>
      </div>
    </div>
    <ul id="smooth_sliderc_nav">
      <li><a id="sldr1" href="#" >1</a></li>
      <li><a id="sldr2" href="#" >2</a></li>
      <li><a id="sldr3" href="#" >3</a></li>
    </ul>
    <br class="sldrbr" />
    <div class="sldrlink"><a href="http://www.clickonf5.org/smooth-slider" target="_blank">Smooth Slider</a></div>
  </div>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('#smooth_sliderc_nav a').click(function() {
var id = jQuery(this).attr('id');
        var step_to_slide = id.replace(/sldr/, "");
        document.getElementById(id).href = "javascript:stepcarousel.stepTo('smooth_sliderc', "+step_to_slide+")";
    });
});
</script>

Now to edit the highlighted text according to what it says. You would be needing to have the image link, post link.

Place the widget above your 'post body' widget. Note that this slider has a width of 560px so place it where there is more or equal width. If you wish to place it above your 'Post body' widget than first note down your blogs main-wrapper width.

To note that Go to Edit HTML >> and find : <b:template-skin> if you use the default blogger templates. In my test blog case the code is as follows. You will find the width as shown in orange


    <b:template-skin>
      <b:variable default='930px' name='content.width' type='length' value='1000px'/>
      <b:variable default='0' name='main.column.left.width' type='length' value='0px'/>
      <b:variable default='360px' name='main.column.right.width' type='length' value='312px'/>
  OR

If you use a custom template, the code will be most likely

#main-wrapper{width:625px;padding-top:10px;padding-left:0px;padding-

Hope that was interesting. Leave you comments below and tell us what you think about this slider. Did you apply that to your blog?

Peace! :)

COMMENTS

.
Name

AdSense affiliate marketing Announcement AskHassam Blogger Blogging Tips Blogosphere News Bluehost Building Traffic BuySellAds Contest Customizations Disqus Tutorials Domain Hosting Drop Down Menus eBook Email Marketing Facebook Tutorials Feedburner Freelancing Giveaway Google Google Analytics Google Gmail Google Plus Tricks Guest Post HowTo Interview Making Money Online Monetization Motivation PayPal Pinterest Plugins review SEO Slideshare Social Media Top Lists Twitter Wordpress YouTube
false
ltr
item
BloggingeHow | Making Blogging Simpler: Add Amazing jQuery Featured Post Slider To Blogger
Add Amazing jQuery Featured Post Slider To Blogger
http://2.bp.blogspot.com/-SH-9bKB7tpY/TkjrbNRipGI/AAAAAAAAAqg/UVIt-4vQAN8/s200/Untitled.png
http://2.bp.blogspot.com/-SH-9bKB7tpY/TkjrbNRipGI/AAAAAAAAAqg/UVIt-4vQAN8/s72-c/Untitled.png
BloggingeHow | Making Blogging Simpler
http://www.bloggingehow.com/2011/08/add-amazing-jquery-featured-post-slider.html
http://www.bloggingehow.com/
http://www.bloggingehow.com/
http://www.bloggingehow.com/2011/08/add-amazing-jquery-featured-post-slider.html
true
5839591175544873606
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy
Resources

Tools of the Trade