Skip to content
Advertisement

Slick slider custom dots

I was wondering if there is a way to use custom slick slider dots. When I search, all I can finds is examples on how to change the dots into thumbnails from the slides, however this is not what I’m trying to accomplish. I just want to use my own png pictures for the active and non-active dot navigation. I tried this:

JavaScript

But that didn’t work, though I recall I did something like that before. Am I missing something here ?

Thanks!

Advertisement

Answer

You can style slick dots with CSS only and avoid using inline images:

Using background image:

JavaScript

Using pseudo element:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement