This question has been asked and responded to previously such as:
“Load JQuery-library in head, conflict with plugin(s)”
“Soil 3.4 - Force jQuery into the header”
However, the solution in both of those cases does not appear to be working for me so wondering if perhaps something has changed since then since one of them is over a year old.
As mentioned by others in those threads, the popular Gravity Forms plugin chokes in Sage (at least with Soil), because jQuery is loaded in the footer and the plugin requires it in the header. To note, I’ve tried toggling the GF setting conflict mode and no conflict mode but didn’t seem to help.
The other posts suggest that Sage by default shouldn’t put jQuery in the footer, and only the soil plugin, in particular the jQuery CDN line does that. And the solution should be either commenting out the jQuery CDN line in assets in setup.php or the better solution is to change “true” to “false” in jquery-cdn.php. I’ve tried commenting out the line in setup and jquery stays in the footer. It simply goes from Google jQuery to regular WP. Tried uncommenting it, and setting it as false and still remains in the footer.
I can’t seem to find any other plugins causing the issue (I have advanced custom fields, facebook comments, jetpack (disabled), wp migrate pro, wp retina 2x, wp-mail-smtp and yoast installed currently.
Ideally, I’d like to leave soil enabled and jQuery should load in the header only on the contact page (which uses Gravity Forms), but currently simply trying to get it to load at the top on all pages isn’t working, so wondering if something has changed with Soil, WP, or Sage, or if something on my end?