• Resolved coady2311

    (@coady2311)


    Hi There,

    I am wanting to add custom previous and next buttons but getting the error;

    (index):1628 Uncaught ReferenceError: Splide is not defined
    at

    I have tried new Splide(‘.splide’).mount();, and my ID which is #splide01 and also #splide01Carousel

    This is my code:

    <script>
    
      new Splide( '.splide' ).mount();
    
      //attach events to custom buttons
    
      btnNext.addEventListener('click', e => {
    
        splide.go('+1')
    
      })
    
      btnPrev.addEventListener('click', e => {
    
        splide.go('-1')
    
      })
    
    </script>

    Any help would be appreciated – great plugin!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Independant Next and Previous Buttons’ is closed to new replies.