-
-
Save davidperezgar/0e4185d1d002a7492133 to your computer and use it in GitHub Desktop.
Wp Dequeue Styles and Scripts in functions child theme
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
//dequeue css from plugins | |
add_action('wp_print_styles', 'mytheme_dequeue_css_from_plugins', 100); | |
function mytheme_dequeue_css_from_plugins() { | |
wp_dequeue_style( '' ); | |
} | |
add_action('wp_print_scripts','mytheme_dequeue_js_from_plugins'); | |
function mytheme_dequeue_js_from_plugins() { | |
wp_dequeue_script( '' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment