[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]
