Forked from michaeldeboeve/Wordpress remove scripts from parent theme.php
Created
January 30, 2020 11:40
-
-
Save Fobiya/4e08eac1e3dc1b6f56b413d619bd7a81 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