If you want, you can just download jQuery , put it on your server and link to it from your header. But that can cause you grief. For one thing, some plugins use the jQuery library, and they are going to load it as well. This can cause problems. How was your plugin to know you already had it loaded?
How to replace jQuery 1.12.4 in Wordpress?
All That’s Good: Brought to you by jQuery
Did you know that the core version of jQuery that is used on most Wordpress sites is 1. The 1. Additionally the 1. If your site doesn't have a really old theme or any really old plugins it might be a good idea to use a more modern version of jQuery. The current branch is up to 3. Many testing tools, including Lighthouse will flag jQuery 1. The 2. If you have old plugins or themes that rely on 1. Consider yourself warned!
The ultimate jQuery debugging tool for WordPress. When the plugin is activated the latest stable version of jQuery and jQuery Migrate are added to your website. The default is sufficient for most people, however the settings provide a way for you to tweak your jQuery install. This plugin is especially designed to update and keep track of jQuery. When a new version of jQuery is released we update the plugin. Updating the plugin will updates the jQuery version activated. Updates will be periodic, we also do small optimizations to our plugin from time to time.
Join Stack Overflow to learn, share knowledge, and build your career. Connect and share knowledge within a single location that is structured and easy to search. I read the Codex and a few blog posts about using jQuery in WordPress, and its very frustrating. I've got as far as loading jQuery in functions. For instance, they say that now that I'm loading jQuery through the functions. How exactly do I do this? What files, specifically, do I add code to? How exactly do I add it for a single WordPress page? First you need to write your script. In your theme folder create a folder called something like 'js'.