K
K
Konstantin2016-09-11 14:01:02
Slider
Konstantin, 2016-09-11 14:01:02

How to connect Owl-Carousel when landing on Wordpress?

Good afternoon! I am mastering the landing of the layout on Wordpress and ran into a problem connecting the Owl-Carousel slider. When layout, I used it and I'm trying to connect it to the Wordpress theme.
wp_register_script('owl-carousel', get_template_directory_uri() .
'/js/owl.carousel.js');
wp_enqueue_script('owl-carousel');
wp_register_script('owl-carousel-min', get_template_directory_uri() .
'/js/owl.carousel.min.js');
wp_enqueue_script('owl-carousel-min');
Do not tell me how to solve the problem? is that possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2016-09-11
@VinnieBrigston

why are you including both scripts? connect only min, and specify jquery in the dependencies here is the description of the function https://developer.wordpress.org/reference/function...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question