Trying to use slick carousel and use my own custom icons for navigation instead of the default thoughts. I thought the best way to do this would be to set up my own list and use slickGoTo, but I can't get it to work.
$(document).ready(function(){
$('.rps-slider').slick({
infinite: true,
arrows: true,
dots:true
});
$(".slick-nav li a").click(function(e){
var slideIndex = $(this).index();
$( ".rps-slider" ).slickGoTo(parseInt(slideIndex));
});
});
jsfiddle here: http://jsfiddle.net/r7vjy7as/
Use $( ".rps-slider" ).slick('slickGoTo', parseInt(slideIndex));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With