A
A
a91050513962021-01-14 21:43:11
css
a9105051396, 2021-01-14 21:43:11

Arrows on the sides of dots in a slick slider?

How can I make the arrows in the slick slider be on the sides of the dots?
Made styles, but there are several sliders on the page, in which there are a different number of slides. Accordingly, it is not an option to prescribe separate styles for each slider.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2021-01-14
@a9105051396

Well, the easiest way is to just add these buttons after the slider is initialized:

$('.slick-dots').prepend('<li><a class="prev-btn" href="#">Prev</a></li>');
$('.slick-dots').append('<li><a class="next-btn" href="#">Next</a></li>');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question