WordPress.org

Support

Support » Plugins and Hacks » Kento Testimonial Slider » Looping only once through the lists

Looping only once through the lists

  • Hello, this is a nice and simple plugin that I have actually made into just a word rotator. However, I have been trying to get it to stop at the last list item.

    I tried adding in the code below to set the rotation to false. It just does not seem to work.

    if ($(‘.kento-testimonial ul li:last’).hasClass(‘active’)) {
    rotation_active = false;
    }

    Any help is greatly appreciated! Thanks!

    https://wordpress.org/plugins/kento-testimonial-slider/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author PluginsPoint

    @kentothemes

    Hi JRizzle88,
    your idea is supper!!

    Currently this plugin doesn’t support “rotation_active” features

    but we have planing to update this plugin and add more features

    Thanks

    It is something to consider, I will keep picking at it until I get it figured out. Your variables are very well named.

    var rotation_active = true by default in your code

    Our main question to ask is, if it is the last list item it will be within the var you created below I believe to make rotation_active = false.

    var start_automatic_rotation = function() {
      rotation = setInterval(function() {
      if (rotation_active) { rotate_quotes('forward'); }
      }, rotation_speed);
    };
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Looping only once through the lists’ is closed to new replies.
Skip to toolbar