Created
March 8, 2013 13:58
-
-
Save ckpicker/5116597 to your computer and use it in GitHub Desktop.
Include jQuery in your theme properly
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
add_action( 'wp_enqueue_scripts', 'sd_frontend_script_and_style' ); | |
function sd_frontend_script_and_style() { | |
wp_deregister_script( 'jquery' ); | |
$jquery_url = 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'; | |
wp_register_script( 'jquery', $jquery_url, array(), null, false ); | |
wp_enqueue_script('jquery'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment