Active slide control on WP Smooth Slider
  • Vote Up1Vote Down geevgeev September 2011
    Hello,
    Normally the active slide controle button is highlighted with font-size: + 5px and font-weight:bolder.
    I have added to rows at j.php which adds an active class to the active controle button.
    I have added it at row: 242 after: var curr_slide = idx;

    This is what I have added:

    jQuery("#smooth_slider .jcarousel-control a").removeClass("active"); //removes active class from all links
    jQuery("#smooth_slider .jcarousel-control a.sldr"+curr_slide).addClass("active"); //ads active class to current slide link

    I hope this will help you update this plugin for a new release.
  • 3 Comments sorted by
  • Thanks for sharing the piece of code, Your inputs are really appreciated.
  • Hi,
    How I put this in my css? How can I to implement?
    Thanks!
  • This is great, thanks @geev!

    @Thommas, it means you can add special CSS styling to the class .active or .jcarousel-control .active (in case you are using the 'active' class name somewhere else on your site).

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with OpenID Sign In with Google Sign In with Twitter

Sign In Apply for Membership

In this Discussion