R
R
righto2021-08-15 16:40:28
Owl Carousel
righto, 2021-08-15 16:40:28

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);

There is no result.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2021-08-16
@Eugeny1987

What does the carousel disappear mean?
After filtering, is there a carousel block with items?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question