-
-
Save jbutko/6065493 to your computer and use it in GitHub Desktop.
WP, function.php: Register, Deregister & Enqueue scripts short
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