Are there any options to stop slick adding next & previous buttons? I can't seem to hide them via css.
<button type="button" data-role="none" class="slick-prev" aria-label="previous" style="display: inline-block;">Previous</button>
Are there any options to stop slick adding next & previous buttons? I can't seem to hide them via css.
<button type="button" data-role="none" class="slick-prev" aria-label="previous" style="display: inline-block;">Previous</button>
Add prevArrow: false
and nextArrow: false
to where you call your carousel. Ex)
$('.slider').slick({
dots: false,
prevArrow: false,
nextArrow: false
});
I added dots: false
in case you wanted to remove that too.
if you want to get rid of both arrows:
$('.slider').slick({
arrows: false
});
Do you want to hide the buttons? Then try this CSS:
.slick-prev:before,
.slick-next:before {
display:none;
}
I had problems with hiding buttons using javascript so I try to use it with CSS
.slider button{
display: none;
}
,but this didn't work so I use
.slider button{
visibility: hidden;
}
It doesn't have pointer events so you will be good to go.
To hide the buttons using CSS only, this worked for me:
nav.slick__arrow {
height: 0;
overflow: hidden;
}
I have also used:
nav.slick__arrow, ul.slick-dots {
display: none!important;
}
I faced problem to remove arrows for particular view port.
This worked for me.
$('.slider').slick({
arrows: false
});