Answer the question
In order to leave comments, you need to log in
How to add span tag in slick slider in dots > button elements, and so that number is written in this tag?
There is the usual list of slick-dots, I need the span tag to be added to the button tags and there is a number inside the span. How can this be implemented?
Answer the question
In order to leave comments, you need to log in
You can use the option (method) customPaging.
$('.slider').slick({
arrows: false,
dots: true,
dotsClass: 'slick-dots slider__dots',
customPaging: function(slick, index) {
return '<span>' + index+ '</span> '
}
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question