Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
153
rated 0 times [  159] [ 6]  / answers: 1 / hits: 12700  / 4 Years ago, fri, december 27, 2019, 12:00:00

I am trying to create a responsive slider using Slick on https://bhr-caterers.nk-creative.com/



On mobile, I only want one slide to show, but 3 are showing. I am trying to use Slick slider's built-in responsive options, but I don't think it is working.



Here is my JS for the slider. Is there something I am doing wrong? I have tried disabling all of my CSS and I am still having this issue.



jQuery(document).ready(function($){


//Sliders//
$('.slider').slick({
lazyLoad: 'onDemand',
centerMode: true,
infinite: true,
slidesToShow: 1,
slidesToScroll: 1,
dots: true,
//autoplay: true,
autoplaySpeed: 6000,
responsive: [
{
breakpoint: 768,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
]
});
});

More From » jquery

 Answers
7
jQuery(document).ready(function($){
//Sliders//
$('.slider').slick({
lazyLoad: 'onDemand',
centerMode: true,
infinite: true,
slidesToShow: 1,
slidesToScroll: 1,
dots: true,
//autoplay: true,
autoplaySpeed: 6000,
responsive: [
{
breakpoint: 768,
settings: {
slidesToShow: 1,
centerMode: false, /* set centerMode to false to show complete slide instead of 3 */
slidesToScroll: 1
}
}
]
});
});

[#5225] Monday, December 23, 2019, 5 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
frederickmohamedw

Total Points: 21
Total Questions: 123
Total Answers: 105

Location: The Bahamas
Member since Tue, Apr 27, 2021
3 Years ago
frederickmohamedw questions
Wed, Sep 23, 20, 00:00, 4 Years ago
Sat, Jul 18, 20, 00:00, 4 Years ago
Sun, Apr 26, 20, 00:00, 4 Years ago
Sat, Jan 11, 20, 00:00, 4 Years ago
Thu, Jul 25, 19, 00:00, 5 Years ago
;