Slick: Using rows: 2 and on responsive row: 1 doesn't work

Created on 27 Dec 2017  路  9Comments  路  Source: kenwheeler/slick

I need to have 1 row when going responsive < 680 px and show 2 items per row.
Somehow that doesn't work.

I have made a JSFiddle;
https://jsfiddle.net/b5bqk68j/925/

(refresh when on < 680 px wide)

My Slick call;

$('.slider-4st').slick({
    dots: false,
    arrows: true,
    nextArrow: '<div class="next"><i>&raquo;</i></div>',
    prevArrow: '<div class="prev"><i>&laquo;</i></div>',
    infinite: false,
    speed: 300,
    slidesPerRow: 4,
    rows: 2,
    adaptiveHeight: true,
    //slidesToShow: 4,
    //slidesToScroll: 4,
    responsive: [
        {
            breakpoint: 1024,
            settings: {
                slidesPerRow: 3
            }
        },
        {
            breakpoint: 680,
            settings: {
                rows: 1,
                slidesPerRow: 2
            }
        },
        {
            breakpoint: 480,
            settings: {
                rows: 1,
                slidesPerRow: 1
            }
        }
    ]
});

Most helpful comment

Try to use slick 1.8.1 and slick.js file. Its important cause slick.min.js is broken in 1.8.1

All 9 comments

Anyone an idea how to fix this?

I have a similar issue:
I'm trying to display 4 images on two rows starting from mobile.

Something like:
1 2
3 4

Please see this example:
https://codepen.io/Cllawz/pen/LezRNB

the slick call:
$('.slick-wrapper').slick({ infinite: false, mobileFirst: true, slidesToShow: 1, slidesToScroll: 1, arrows: true, rows: 2, slidesPerRow: 2, responsive: [{ breakpoint: '1024', settings: { slidesToShow: 4, rows: 1, slidesPerRow: 1 } }] });

Please let me know if there is any way to fix this.
Thank you,

Try to use slick 1.8.1 and slick.js file. Its important cause slick.min.js is broken in 1.8.1

I just want to confirm that @rosivanov 's suggestion to use the un-minified 1.8.1 resolved the issue for me. Thanks.

So with Slick 1.8.1 fixed on the un-minified version still you can't do rows on responsive. One workaround is to have the mobileFirst: true on the initial settings and add the row settings there, then have a separate option on the responsive for 1024 where you default back.
@claudiuTicu 's example is the way to do it.

Still facing this issue, sad to see the plugin isn't maintained anymore.

As suggested from @rosivanov with .js version is ok.
You can minify the .js version and use it.

Had same problem. rows: 1 along with slidesperRow: 2 had strange effect on slides
Just switching to unmified version of slick.js resolved issue

I just want to confirm that @x35a https://github.com/kenwheeler/slick/issues/3277#issuecomment-357706063 is working fine. The same fix also applies works for 1.8.0.
you are really a great person. Thanks a lot

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hoghamburg picture hoghamburg  路  3Comments

xitongzou picture xitongzou  路  3Comments

NozX18 picture NozX18  路  3Comments

crstauf picture crstauf  路  3Comments

jamesinealing picture jamesinealing  路  3Comments