My client has a site running the latest version of WordPress, with Thesis.
Currently, jQuery is being loaded in the footer, as the very last script to be loaded. I’m not sure what is causing jQuery to load – possibly Thesis, or something else.
We are adding a plugin, which has a script that loads. The script is being loaded in the footer. But it’s being loaded BEFORE jQuery, so it fails.
The enqueue scripts line is this:
add_action('wp_enqueue_scripts', array($this, 'stb_enqueue_scripts'));
I edited it to be this:
$deps = array("jquery");
add_action('wp_enqueue_scripts', array($this, 'stb_enqueue_scripts', $deps));
But that didn’t solve the problem – in fact, the script no longer loaded at all.
How can I make sure this script loads after jQuery?
Thank you!!