S
S
saplas2019-06-25 20:26:39
JavaScript
saplas, 2019-06-25 20:26:39

Why doesn't slick work?

There was a problem: the slider works, but by clicking on "Show more" (other products are loaded), the slider no longer works on new blocks. How to fix it?
I tried and solved the problem like this:$('.block_name).slick('reinit');

setTimeout(function(){
        $('.more_product_4 .product-image').not('.slick-initialized').slick();
      },500);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Suha, 2019-06-25
@andreysuha

Re-initiate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question