question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:12

github_iconTop GitHub Comments

79reactions
x35acommented, Jan 15, 2018

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

5reactions
jeffmagillcommented, Jun 22, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slick show 2 row, 6 items on desktop and 1 ... - Stack Overflow
I'm trying to accomplish 2 rows and 6 items on the full width and 1 row with 1 item on mobile. $('.your-class').slick({ slidesToShow:...
Read more >
CSS for Rows & Responsive Not working properly
1. Can't set the second row to a different colour (setting different column colours works though) and it's also not picking up the...
Read more >
grid-template-rows - CSS: Cascading Style Sheets | MDN
The grid-template-rows CSS property defines the line names and track sizing functions of the grid rows.
Read more >
slick - the last carousel you'll ever need - Ken Wheeler
To fix it, I set the '.slick-slide' wrapper to 'display: block; float: left' - then set the element inside of the wrapper (in...
Read more >
Grid system - Bootstrap
Bootstrap's grid system uses a series of containers, rows, and columns to ... <div class="container"> <div class="row"> <div class="col"> 1 of 2 </div>...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found