How to enqueue my JS after the plugin JS
-
Hello – trying to get the callbacks working and am having no luck getting my theme’s main JS file inserted in the footer after the plugin’s JS as described on the callbacks page in the docs: https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/ As a result, Im getting ‘almComplete is not defined’ errors of course.
I’ve tried adding a priority within my add_action for wp_enqueue_scripts as follows, but no dice- the plugin’s main and masonry JS files still get inserted after my theme JS files:
add_action( 'wp_enqueue_scripts', 'foundationpress_scripts', 9999, 1 );
Any tips on how to get this kicked to the bottom so that I can use the callbacks?
Thanks!
-Adam
- The topic ‘How to enqueue my JS after the plugin JS’ is closed to new replies.