Reputation: 1
Hi guys I've got some problems with slik code After a button click, the layout in the slider no longer works and I don't know why, I guess I have to recall this function:
$(".regular").slick({ dots: true, infinite: true, slidesToShow: 3, slidesToScroll: 3 });
But I'm not sure and I don't know where to call it.
Some ideas?
Thanks
Denis
Upvotes: 0
Views: 755
Reputation: 63
You need to unslick before you add any content to it,
then init it again
$(".regular").slick("unslick");
$(".regular").slick({
dots: true,
infinite: true,
slidesToShow: 3,
slidesToScroll: 3
//attr you need
});
Hope that help.
Upvotes: 0