I used a PHP script to move all scripts to the footer of my site, but some plugins don't work anymore.
I used the following:
// JavaScript to footer --> läd alles im footer!
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_print_head_scripts', 5 );
add_action( 'wp_footer', 'wp_enqueue_scripts', 5 );
Is there a way to exclude a single script from this PHP code?
wp_dequeue_script()
– Mayeenul Islam Oct 19 '15 at 12:58