You simply jump into the same hook and then deregister/dequeue the styles/scripts and throw in your custom ones.
1 2 3 4 5 6 7 8 9 10 11 | function PREFIX_remove_scripts() { wp_dequeue_style( 'screen' ); wp_deregister_style( 'screen' ); wp_dequeue_script( 'site' ); wp_deregister_script( 'site' ); // Now register your styles and scripts here } add_action( 'wp_enqueue_scripts', 'PREFIX_remove_scripts', 20 ); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.