Home › Forums › Gutenberg › Trying to use Splide slider in ACF block › Reply To: Trying to use Splide slider in ACF block
Sorry misread your question, you want it showing in backend not just front end, ignore my answer!
if ($(".slide-carousel").length) {
var slidesliders = document.querySelectorAll('.splide.slide-carousel');
for (var i = 0; i < slidesliders.length; i++) {
var slideslider = new Splide(slidesliders[i], {
type: 'loop',
perPage: 3,
updateOnMove: true,
gap: '4rem',
padding:'4rem',
autoHeight: true,
focus: 'center',
autoplay: false,
rewind: true,
arrows: true,
});
slideslider.mount()
}
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.