S
S
saplas2019-04-04 16:04:15
css
saplas, 2019-04-04 16:04:15

Why don't owl carousel arrows work?

Hello. There is a carousel, it seems to work, but the problem is that the navigation arrows do not respond to pressing.

$('#main-banners').owlCarousel({
        items: 1,
        dots: false,
        loop: true,
        autoplay: false,
        navText: [],
        nav: true
    });

On the site, navigation buttons are added with the class disabled
<div class="owl-nav disabled">
<button type="button" role="presentation" class="owl-prev"></button>
<button type="button" role="presentation" class="owl-next"></button>
</div>

Why? I set nav: true I
use Owl Carousel v2.3.4

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Sharomet, 2019-04-04
@sharomet

Try to remove
navText: []

H
houd1ini, 2019-05-11
@houd1ini

Try to duplicate several slides so that there are more of them than the number of displayed slides.

A
Alexander AS, 2019-05-11
@as_viper

I had the same thing until I removed dots:false.
Strange of course, I did not understand this joke, but it began to work.

V
Vladimir Kulikov, 2021-02-13
@it_proger29

Try to assign a class to the slider containerowl-theme

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question