V
V
vonsyus2020-04-06 21:43:24
JavaScript
vonsyus, 2020-04-06 21:43:24

Why don't I get dots in Owl Carousel?

I have an Owl Carousel slider with pictures, this is how I declared it:

$(document).ready(function() {
    let owl = $('.owl-carousel');
    owl.owlCarousel({
        items: 1,
        loop: false,
        margin: 10,
        dots: true,
        autoWidth: true
    });

    $('#left').click(function() {
        owl.trigger('prev.owl.carousel');
    });

    $('#right').click(function() {
        owl.trigger('next.owl.carousel');
    });
});

The problem is that with dots: true enabled, these same dots are not on the page at all (even in the DOM):
5e8b78499e13e146751448.png
5e8b78188f4e5774307998.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question