I'm using:
- wordpress site
- owl carousel plugin
Here is the JQuery code I'm using:
$(document).ready(function() {
$("#owl-images").owlCarousel({
items : 3,
itemsDesktop : [1199,3],
itemsDesktopSmall: [979,2],
itemsTablet : [768,1],
lazyLoad : true,
navigation : false,
autoPlay : true,
autoHeight: true
});
});
$(document).ready(function() {
$("#owl-videos").owlCarousel({
items : 3,
itemsDesktop : [1199,3],
itemsDesktopSmall: [979,2],
itemsTablet : [768,1],
lazyLoad : true,
navigation : false,
autoPlay : true,
autoHeight: true
});
});
I've read that wordpress conflits with jquery in this question but I even changed to:
jQuery(document).ready(function() {
jQuery("#owl-images").owlCarousel({
items : 3,
itemsDesktop : [1199,3],
itemsDesktopSmall: [979,2],
itemsTablet : [768,1],
lazyLoad : true,
navigation : false,
autoPlay : true,
autoHeight: true
});
});
jQuery(document).ready(function() {
jQuery("#owl-videos").owlCarousel({
items : 3,
itemsDesktop : [1199,3],
itemsDesktopSmall: [979,2],
itemsTablet : [768,1],
lazyLoad : true,
navigation : false,
autoPlay : true,
autoHeight: true
});
});
But still not working, still getting
Uncaught TypeError: undefined is not a function