• Hello
    i have testimonials section that came with the theme and is neither a plugin or widget. it came coded with the theme.
    So i wanted them to auto scroll and hence placed this code as custom js.

    setInterval(function() { jQuery('.next-testimonial').click(); }, 5000);

    however, when the third testimonial is reached, since there are no more to scroll, it is stuck at that testimonial. I want to go back to first testimonial once it reaches the last(third) testimonial. How to do it?

    you can see the site here..
    http://54.255.134.112/

    RK

Viewing 1 replies (of 1 total)
  • Depending on how it’s set up, could you use a type of conditional along the lines of the following that would direct it from the last child to the first child? (Obviously could change depending on how it’s set up semantically in your php/HTML…

    if($current.is(":last-child")) {
       $('.thumbnails a:first-child').click();
    }
    else {
       $current.next().trigger('click');
    }
Viewing 1 replies (of 1 total)

The topic ‘auto rotate testimonials’ is closed to new replies.