Created
June 23, 2016 18:45
-
-
Save moxdev/d8f162494e8f9e5559e97d519eb7722a to your computer and use it in GitHub Desktop.
How to move WordPress default jQuery and jQuery UI into footer instead of head
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
// This goes in the theme function.php with the other registered scripts | |
wp_deregister_script( 'jquery' ); | |
wp_register_script( 'jquery', includes_url( '/js/jquery/jquery.js' ), false, NULL, true ); | |
wp_deregister_script( 'jquery-ui-core' ); | |
wp_register_script( 'jquery-ui-core', includes_url( '/js/jquery/ui/widget.min.js' ), false, NULL, true ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment