daniel Crabbe daniel Crabbe - 1 year ago 132
CSS Question

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>

Answer Source

Add prevArrow: false and nextArrow: false to where you call your carousel. Ex)

    dots: false,
    prevArrow: false,
    nextArrow: false

I added dots: false in case you wanted to remove that too.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download