Slider -- No Loop

Hello,

I am having an issue with the featured slider.

It is to be expected that a slider, once it reaches the final slide, would return to the first slide.

However, this is not the case.
The slider will reach the last slide, and stop there.

Any suggestions on possible fixes?

Comments

  • Hi

    For this follow the given below instruction . 

    1 Find the indexslider-script.php file (located in your theme folder ) . 

    2  Open it and find the below line of code on line no  16 17 18  . 

     if (!slider.playing) {
                    slider.play();
                }

    3 And replace it with  below line of code . 

         if (slider.currentSlide == 0) {  slider.pause();  }

    Let me know for further assistance . 

    Thanks 
    Akhilesh
  • Hi

    Did the above solution work for you ?

    Thanks 
  • Hi,

    The code to be replaced on line 16,17,18 was not the same.

    Screenshot of Code:

    if( $slider->have_posts() )
    {....}

    By Inserting the code, the frontpage was unable to load.

    I do not desire to turn off the loop for the slider.
    In its current state, the slider WILL NOT continuously run. It stops at the last panel

    Almost all sliders I have seen will automatically cycle through the panels.
    This is what I hope to find a fix for.

    Hopefully that helps clarify, thank you for the quick response.

  • HI

    You are finding code into the wrong file . 
    I suggest you to find the code in  indexslider-script.php file (located in your theme folder << functions folder << script folder << find the file  ) . 

    Thanks 
  • Ah, I see.

    I have found the file and replaced the code as suggested.

    Sadly, the slider still stops at the last slide.
  • HI

    Means you want to loop the slider like our demo link . 

    Am I right . 
    Also share your site url . 
    What do you want exactly , pls clear us . 
    So that we can assist you better . 


    Thanks 
  • Yes, that is correct. Exactly like the demo.

    Here is a link to the site:




    Is it possible that a plugin is interfering with the featured slider? I'm just trying to consider why it breaks.

  • Hello
    Kindly clear us which plugin interfering .
    So that we can check what's going wrong with your end .

    Thanks
  • I have no reason to believe that there is a plugin interfering, I was just taking a guess.

    Here is a list of the current active plug ins:
    • BigContact Contact Page
    • Career Portfolio
    • Code Snippets
    • Contact Form 7
    • LayerSlider WP
    • Meta Slider
    • Ninja Forms
    • Responsive WordPress Slider
    • Team
    • WordPress Importer
    • WordPress Slider Plugin
    • WP Team Showcase and Slider
  • The issue has been resolved. I implanted an alternative slider into the home page to replace the Featured slider.
This discussion has been closed.