Independant Next and Previous Buttons

[ad_1]

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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer