Owl Carousel Uncaught TypeError: undefined is not a function in WordPress

I’m a developing own WordPress theme. I’m using Owl Carousel

But getting this error Uncaught TypeError: undefined is not a function from 1st line and doesn’t show any carousel item. Sorry my bad english.

$(document).ready(function() {

    $("#owl-demo").owlCarousel();

});

Related posts

Leave a Reply

1 comment

  1. jQuery is included with WordPress by default in no-conflict mode. In noConflict() mode, the global $ shortcut for jQuery is not available, so you need to use:

    jQuery(document).ready(function($) {
        // Inside of this function, $() will work as an alias for jQuery()
        // and other libraries also using $ will not be accessible under this shortcut
    });