A
A
Anonimmus2020-12-14 18:35:05
JavaScript
Anonimmus, 2020-12-14 18:35:05

$ is undefined owl carousel how to fix?

Slider crashed after validation failed, please help. I did it on WordPress, after the client's whim about validation, I demolished the defer values, and then the jquery itself.

superpol.su
Uncaught TypeError: $ is undefined
https://superpol.su/wp-content/themes/stebnevstudi... https://superpol.su/wp-content/themes/stebnevstudi...
owl.carousel.js :1718:2
Uncaught TypeError: $(...).owlCarousel is not a function
https://superpol.su/wp-content/themes/stebnevstudi... jQuery 4

site https://superpol.su/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WP Panda, 2020-12-14
@Anonimmus

You have jquery connected from the plugin and not from the core, and after calling owl carousel, and it has a dependency on jquery, connect accordingly from the core and in the owl registration specify wp_enqueue_script/wp_register_script as the third parameter - ['jquery']

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question