Created
December 31, 2013 13:58
-
-
Save 8lane/8197157 to your computer and use it in GitHub Desktop.
Remove all Wordpress JS from <head> and move to the footer.
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
<?php | |
remove_action('wp_head', 'wp_print_scripts'); | |
remove_action('wp_head', 'wp_print_head_scripts', 9); | |
remove_action('wp_head', 'wp_enqueue_scripts', 1); | |
add_action('wp_footer', 'wp_print_scripts', 3); | |
add_action('wp_footer', 'wp_enqueue_scripts', 3); | |
add_action('wp_footer', 'wp_print_head_scripts', 3); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment