Answer the question
In order to leave comments, you need to log in
WordPress. How to selectively transfer JS plugins to the footer?
I use this function:
function footer_enqueue_scripts(){
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',5);
add_action('wp_footer','wp_enqueue_scripts',5);
add_action('wp_footer','wp_print_head_scripts',5);
}
add_action('after_setup_theme','footer_enqueue_scripts');
Answer the question
In order to leave comments, you need to log in
A great plugin - BWP Minify, has a special manager for determining where this or that script will be connected!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question