Skip to content
Advertisement

Tag: enqueue

Include jQuery Core in Theme Folder and Enqueue to Footer

I have used the below for many years to move jQuery to the footer. But instead of loading the version shipped with WP (or ClassicPress too) I will download the latest version here https://releases.jquery.com/jquery/ to my theme folder. So how do I now change the wp_register_script above to call a local version like ‘assets/js/jquery-3.6.1.js’? Haven’t been able to find any

Advertisement