I am working on a project and as my knowledge in javascript are very limited, I decided to use owlcarousel
. everything was working fine but now I am facing a problem.
I have set the dots to true but they do not appear. My work so far is the following:
Please let me know how I can fix this issue
I also faced the same problem while using Owl slider for the first time on my webpage. I could not see the dots navigation and I thought to myself this may be a bug and decided to do some investigation.
I figured later that there are 2 css files required to be included. One is the own-carousel.min.css
and the other is owl.theme.default.min.css
. After this the container div should have the owl-carousel
and owl-theme
class in their class list. For e.g:
<div id="slider" class="owl-carousel owl-theme">
<img src="/dist/assets/img1.jpg" />
<img src="/dist/assets/img2.jpg" />
<img src="/dist/assets/img3.jpg" />
<img src="/dist/assets/img4.jpg" />
</div>
Hope this helps for people who are facing this issue later.