Answer the question
In order to leave comments, you need to log in
Why might owl carousel not work?
Hello!
Why might owl carousel not work? In the head I include the owl carousel style like this:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.1/assets/owl.carousel.min.css" integrity="sha256-AWqwvQ3kg5aA5KcXpX25sYKowsX97sTCTbeo33Yfyk0=" crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.1/owl.carousel.min.js" integrity="sha256-s5TTOyp+xlSmsDfr/aZhg0Gz+JejYr5iTJI8JxG1SkM=" crossorigin="anonymous"></script>
Answer the question
In order to leave comments, you need to log in
did you initialize the carousel plugin itself?
tavo type:
$(document).ready(function(){
$(".owl-carousel").owlCarousel();
});
Are there any errors in the console? jquery connected? 1 time connected? Is it connected after owl? And 3000 more questions, but it's easier if you give a link or errors from the console.
If I'm not mistaken, then in the head of the site you need to add something like this:
<style type="text/css">
#slider, .slide {height: 300px; width: 100%;}
</style>
Possibly due to
integrity="sha256-s5TTOyp+xlSmsDfr/aZhg0Gz+JejYr5iTJI8JxG1SkM=" crossorigin="anonymous"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question