Created
May 28, 2013 12:10
-
-
Save markdcraftww/5662315 to your computer and use it in GitHub Desktop.
enqueue jQuery in Wordpress
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
if (!is_admin()) add_action( 'wp_enqueue_scripts', 'my_jquery_enqueue', 11 ); | |
function my_jquery_enqueue() { | |
wp_deregister_script( 'jquery' ); | |
wp_register_script( 'jquery', get_template_directory_uri() . '/js/jquery.js', false, null ); | |
wp_enqueue_script( 'jquery' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment