Created
April 26, 2017 07:50
-
-
Save ScarletPonytail/7cd9a0b0f36739c8bf25884d657a088a to your computer and use it in GitHub Desktop.
WordPress - Add jQuery
This file contains hidden or 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
// smart jquery inclusion | |
if (!is_admin()) { | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false); | |
wp_enqueue_script('jquery'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment