Thread Starter
zond28
(@zond28)
thanks, but it’s not working
I think Im too dump for this CMS
Thread Starter
zond28
(@zond28)
I dont understand the examples. they pur src there, while I have a script
Thread Starter
zond28
(@zond28)
So in the footer.php I can add this, right?:
wp_add_inline_script( new_carousel.js $handle,
<script>
const myCarousel = new Carousel({
container: document.querySelector(‘.slider’),
items: document.querySelectorAll(‘.slider__item’),
displayControls: false,
controlsContainer: document.querySelector(‘.slider__controls’),
autoplay: true,
autoplayTime: 3500
});
</script>
$data, footer $position = ‘after’ )
Thread Starter
zond28
(@zond28)
For the first script or the last one?
Not sure how to use it…