I’d like to find out if I’m just doing this wrong or if this is pretty much what other people have experienced as well.
I’ve got jQuery enqueued into my WordPress header, but I’ve never got jQuery to work as long as it was within the
Is that normal? Does it matter? Or is something amiss?
wp_register_script(‘jquery’, (“//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js”), false);
Put this in your `functions.php`. And visit [Google jQuery API](https://developers.google.com/speed/libraries/devguide#jquery) for version you need.
Thanks for the reply! I’ll give it a shot.
Is there a way to maintain the most recent version if jQuery?
All you have to do is refer to the link for [Google jQuery API](https://developers.google.com/speed/libraries/devguide#jquery) and change the version number in the string, so for 2.0.3:
Right, but it won’t be automatic, which is a shame. Thanks again for the reply!
@JoshWhite I don’t think that’s a good idea to begin with. If something becomes deprecated in a future version and your script is using it, you have a constant problem.
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".