• Hi,
    I’ve been trying to integrate the owl carousel for a while now.
    Have done it before to other themes a lot of times but now im just recieveing the error “OwlCarousel is not a function”. I have tried with different versions of css files and js files and loaded it from different places. I have also loaded the jquery in non-conflict mode.

    Url: http://fredrikbrolin.se/compare

    Have anyone experienced the same issue?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi bro, I am sorry that I am unable to help as I am a newbie.

    I am also trying to use StoreFront to build an e-commerce site.

    I see your webpage is totally different from the StoreFront theme that I see.

    I searched the web and saw many people saying using a Child Theme to change the way it looked.

    Is that what you have done too?

    Thanks for your advice and sorry for unable to be of help to you.

    Thread Starter brollan

    (@brollan)

    @hero99: Hi! No worries. I have done some heavily customization to my site from the original theme, both visual and in the woocommerce files.

    I can recommend to use a child theme as you say, that way you can alter the visuals of the site securely.

    Thanks

    Hey,

    I think it’s because jQuery is being loaded twice. View the source of your site and you’ll notice it’s added on line 13 and once again on line 219.

    Remove the version of jQuery you added yourself (jQuery is already loaded in Storefront) and enqueue the owlCarousel script correctly using wp_enqueue_script() with a jQuery dependency. You can read up on how to do that here: https://codex.ww.wp.xz.cn/Function_Reference/wp_enqueue_script

    Cheers!

    Thread Starter brollan

    (@brollan)

    @jameskoster:

    Hi James,
    Ahh Im so stupid. Thanks a lot!

    Cheers mate!

    No problem!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Cannot integrate Owl Carousel’ is closed to new replies.