Created
September 2, 2020 13:13
-
-
Save DoubleMarv/4805a0e1abe4b1d724eff186a654ab53 to your computer and use it in GitHub Desktop.
Remove default jquery and load new in Wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// include custom jQuery | |
function trone_include_custom_jquery() { | |
wp_deregister_script('jquery'); | |
wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js', array(), null, true); | |
} | |
add_action('wp_enqueue_scripts', 'trone_include_custom_jquery'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment