Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    To remove previous button from first slide and next button from last slide, you need to do some small code changes.

    Please follow the given steps,

    1. Go to wp-content/plugins/smooth-slider/css/skins/default/functions.php file.
    2. Open file to edit.
    3. Find/ Search for the term $html.=$fouc_ready;.
    4. Please add the below code after searched term line.
    5. `if ($smooth_slider[‘prev_next’] == 1){
    $html .=’function onAfter(curr, next, opts) {
    var index = opts.currSlide;
    jQuery(“#’.$slider_handle.’_prev”)[index == 0 ? “hide” : “show”]();
    jQuery(“#’.$slider_handle.’_next”)[index == opts.slideCount – 1 ? “hide” : “show”]();
    }’;
    }`
    6. Find for the term $html.='next:
    7. Please add the below code at the end of searched term line means before ';.
    after:onAfter,

    Hope it will help you.

    Best Regards,
    Sukhada,
    SliderVilla Support Team.

    Thread Starter RedDog416

    (@reddog416)

    Worked perfectly. Thanks!

    Thread Starter RedDog416

    (@reddog416)

    Resolved.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove Previous/Next Buttons from First and Last Image In Slideshow’ is closed to new replies.