owl carousel - Set different items number for each of many sliders placed on the same page
I have a page with multiple sliders that are created with owl carousel. I would like to define different number of visible items for each slider. The perfect solution would be to define number of visible items in HTML (as a class or data). I am just starting using jQuery so I only managed to pass a value using data attribute like this: <div class="owl-carousel" data-itemsnumber="5">...</div> Then I applied this value to a variable in JS and add this variable in settings instead of items number like this. var slides = $('.owl-carousel').data('itemsnumber'); $(".owl-carousel").owlCarousel( {