WordPress.org

Forums

Kento Testimonial Slider
Looping only once through the lists (3 posts)

  1. JRizzle88
    Member
    Posted 1 year ago #

    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/

  2. KentoThemes
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. JRizzle88
    Member
    Posted 1 year ago #

    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);
    };

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Kento Testimonial Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic