Show part of next and previous items with Owl Carousel 2.0

The easiest way to do this is by using stagePadding. Demo below: $(function() { $(‘.owl-carousel’).owlCarousel({ margin: 10, loop: true, items: 1, stagePadding: 100 }); }); <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js”></script> <link href=”https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.1/assets/owl.carousel.min.css” rel=”stylesheet” /> <script src=”https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.1/owl.carousel.min.js”></script> <div class=”owl-carousel”> <div class=”item”><img src=”https://placehold.it/350×150&text=1″ /></div> <div class=”item”><img src=”https://placehold.it/350×150&text=2″ /></div> <div class=”item”><img src=”https://placehold.it/350×150&text=3″ /></div> <div class=”item”><img src=”https://placehold.it/350×150&text=4″ /></div> <div class=”item”><img src=”https://placehold.it/350×150&text=5″ /></div> … Read more

Owl Carousel 2 Nav on Sides

I just did this yesterday:) Firstly make sure nav is turned on in the config https://owlcarousel2.github.io/OwlCarousel2/docs/api-options.html $(‘#_samewidth_images’).owlCarousel({ margin:10, autoWidth:false, nav:true, items:4, navText : [‘<i class=”fa fa-angle-left” aria-hidden=”true”></i>’,'<i class=”fa fa-angle-right” aria-hidden=”true”></i>’] }) This will inject the controls into the DOM, see https://owlcarousel2.github.io/OwlCarousel2/docs/api-classes.html <div class=”owl-carousel owl-theme owl-loaded”> <div class=”owl-stage-outer”> <div class=”owl-stage”> <div class=”owl-item”>…</div> <div class=”owl-item”>…</div> <div class=”owl-item”>…</div> … Read more

Owl Carousel, making custom navigation

You need to enable navigation and edit navigationText: > Assuming this is version 1.3.2 owlgraphic.com/owlcarousel/#customizing Note: It appears the site for Owl 1.3 is now down, so here is a forked Codepen example. $(“#owl-example”).owlCarousel({ navigation: true, navigationText: [“<img src=”https://stackoverflow.com/questions/31224192/myprevimage.png”>”,”<img src=”mynextimage.png”>”] }); > Assuming it’s version 2: https://owlcarousel2.github.io/OwlCarousel2/docs/api-options.html#nav $(“#owl-example”).owlCarousel({ nav: true, navText: [“<img src=”https://stackoverflow.com/questions/31224192/myprevimage.png”>”,”<img src=”mynextimage.png”>”] }); … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)