Javascript to Make Thrive Ovation Slider Rotate Automatically

Javascript to Make Thrive Ovation Slider Rotate Automatically

Web Hosting

If you are using Thrive Ovation plugin for managing testimonials, you already know that there are some limitations to it. For instance, the slider templates doesn't slide automatically. A lot of my clients prefer a rotating display, so as a workaround, I just put a javascript to make it happen. 

Copy this custom code and put on the body scripts

<script type='text/javascript'>

    var stoprotate = false;

  setInterval(rotatetest,4000);

    function rotatetest(){

     if (stoprotate==false)  { jQuery(".thrlider-next").trigger( "click" ); }

   }

jQuery(".thrlider-next").click(function(e){

    if(e.hasOwnProperty('originalEvent')) {

               // realclick

               stoprotate=true;

   }

    else {

     // programmatic click - do nothing

   }

});

// Also stop if real click on previous

jQuery(".thrlider-prev").click(function(e){

                 stoprotate=true;

});

 </script>

About the Author Kaila Sharlene

I am a freelance web designer, web developer and SEO specialist - one of the “Top Rated” web designers on Upwork. Living a digital nomad lifestyle, I love to explore the outdoors while doing some freelance jobs in between.

follow me on:
>