Last active
December 17, 2015 01:49
-
-
Save deepak-rajpal/5531622 to your computer and use it in GitHub Desktop.
If default wp_head cause including old JQuery version such as 1.4.2.
Add following into function.php to De-register current default JQuery and include new one (version 1.7.2) in this case.
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
<?php | |
// code to include in theme's functions.php | |
if( !is_admin()){ | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"), false, '1.7.1'); | |
wp_enqueue_script('jquery'); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment