Skip to content

Instantly share code, notes, and snippets.

@moxdev
Created June 23, 2016 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moxdev/d8f162494e8f9e5559e97d519eb7722a to your computer and use it in GitHub Desktop.
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 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