error init slider while loading jquery in footer
-
Hi,
Plugin doesn’t initialize when we load jquery from footer because variable $output add slide settings below owl-carousel divs only when
wp_script_is('jquery', 'done')
which means plugin will work correctly when jquery is loaded in head.There is a few ways to resolve it. One of it, is add slide settings below line where plugin load file ‘owl.carousel.min.js’.
If is only one slider then add slide settings with <script> tag otherwise if is more sliders than one then add <script> tag with first slider settings and other sliders settings just input inside it.Regards,
Callenowy
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘error init slider while loading jquery in footer’ is closed to new replies.