Last active
January 30, 2020 11:40
-
-
Save michaeldeboeve/c31b2d6fef9c69fec8f9 to your computer and use it in GitHub Desktop.
Wordpress remove scripts from parent 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
function remove_scripts() { | |
wp_dequeue_script( 'script-name' ); | |
} | |
function remove_styles() { | |
wp_dequeue_style( 'style-name' ); | |
} | |
add_action( 'wp_print_scripts', 'remove_scripts' ); | |
add_action( 'wp_print_styles', 'remove_styles' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment