This snippet will allow you to change the default source for your WordPress jQuery files.
Instructions
Add this code to your functions.php
file.
<?php
function add_scripts() {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', 'https://code.jquery.com/jquery-3.3.1.min.js');
wp_enqueue_script( 'jquery' );
}
add_action('wp_enqueue_scripts', 'add_scripts');
?>
Comments