Answer the question
In order to leave comments, you need to log in
How to initialize owl carousel again after ajax filter (FacedWp) has updated the data?
There is an Owl carousel and an ajax plugin for filtering. After the first use of the filter, the carousel disappears, I tried to do this:
(function($) {
document.addEventListener('facetwp-loaded', function() {
$('#news__carousel_main').owlCarousel({
loop:true,
margin:30,
nav:true,
dots:true,
responsive:{
0:{
items:1
},
600:{
items:3
},
1000:{
items:3
}
}
});
});
})(jQuery);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question