Created
January 18, 2023 12:20
-
-
Save jjmontalban/5961f4410b3b441213f0d6e01d497f7a to your computer and use it in GitHub Desktop.
Quitar estilos de bloques en los widgets en WP
This file contains hidden or 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
/** | |
* @snippet Quitar estilos de bloques en los widgets | |
* @author JJMontalban | |
*/ | |
function quitar_estilos_bloques_woo() { | |
wp_deregister_style( 'wc-blocks-style' ); | |
wp_dequeue_style( 'wc-blocks-style' ); | |
} | |
add_action( 'enqueue_block_assets', 'quitar_estilos_bloques_woo' ); | |
add_filter( 'should_load_separate_core_block_assets', '__return_true' ); | |
function remove_global_styles() { | |
wp_dequeue_style( 'global-styles' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'remove_global_styles' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment