How to change the default source of jQuery in WordPress

This snippet will allow you to change the default source for your WordPress jQuery files.

Instructions
Add this code to your functions.php file.

Comments

2 Replies to “How to change the default source of jQuery in WordPress”

  1. This code is missing jQuery UI update, very important as Google Lighthouse reports High vulnerability, once jQuery UI is updated too all works perfectly.

    I achieved it with custom made plugin (someone made it for me) but functions.php code is better, if you can please update/add some code that can do that…

Leave a Reply

Your email address will not be published. Required fields are marked *

Snippet Info

Tested with Wordpress v. 4.7.1

How to change the default source of jQuery in WordPress
3.9 (78.89%) 18 votes
Please report broken snippets.
Report Broken Snippet