Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

slick carousel - hide controls?

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>
like image 391
v3nt Avatar asked Apr 09 '15 16:04

v3nt


People also ask

How do you hide the arrows in slick slider?

$('. slider'). slick({ dots: false, prevArrow: false, nextArrow: false });


1 Answers

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.

like image 61
Edward Avatar answered Oct 03 '22 10:10

Edward