short description of the bug / issue, provide more detail below.
Tried using slidesToShow setting - doesn't work? auto adjusts width but doesn't show X amount of slides.
Here is my code (no jsfiddle as generated with PHP):
jquery:
$('.product-gallery').slick({
arrows: false,
fade: true,
infinite: true,
slidesToShow: 4,
slidesToScroll: 1
});
php/html:
<?php if (count($product_gallery_slides) > 0) : ?>
<div class="product-gallery">
<?php foreach ($product_gallery_slides as $slide) : ?>
<div>
<img src="<?php echo plugins_url('path/to/images/'). $slide->slide_img; ?>"
alt="<?php echo $info->model_name; ?> Slider" />
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
====================================================================
... to show 4 slides at once
====================================================================
... it shows one result
====================================================================
Which browsers/versions does it happen on?
Linux Mint Firefox
Which jQuery/Slick version are you using?
jQuery - 3.21.1
can't find my download link I used (new OS so data lost)
Did this work before?
Not sure - hadn't tried
I fixed using:
$('.product-gallery').slick({
arrows: false,
autoplay: true,
autoplaySpeed: 4500,
infinite: true,
pauseOnFocus: false,
pauseOnHover: false,
slidesToShow: 4,
slidesToScroll: 1
});
please close :)
Can't use fade : true it seems..
You could but only with slidesToShow: 1 for now
Most helpful comment
Can't use fade : true it seems..