Suggestion: Make script depend on jQuery
-
I encountered an issue where jQuery was being loaded after the WP Magnific Popup script, which caused an error prevented popups from displaying. To resolve this I changed line 51 in the plugin to the following, which resolved the issue.
wp_enqueue_script('magnific-popup', plugins_url('mpopup/jquery.magnific-popup.min.js', __FILE__), array('jquery'));
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Suggestion: Make script depend on jQuery’ is closed to new replies.