Scripts not loading in footer
-
Hey there, there’s a missing bit of code on
responsive-lightbox.php
on lines 1314-1315. Thewp_register_script
calls forresponsive-lightbox-infinite-scroll
andresponsive-lightbox-images-loaded
are missing theversion
andin_footer
parameters. Without this in place, jQuery will still load in the header even if it’s set via the plugin settings to load in the footer.Please add
Responsive_Lightbox()->defaults['version']
and( Responsive_Lightbox()->options['settings']['loading_place'] === 'footer' )
to thesewp_register_script
calls so that scripts load where they’re supposed to.
- The topic ‘Scripts not loading in footer’ is closed to new replies.