From dc1c02818c2ea039107d705b06bf7b628a54abd3 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 18 Nov 2023 10:23:24 +0100 Subject: [PATCH] fix: remove more wordpress css --- functions/remove-block-library.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/remove-block-library.php b/functions/remove-block-library.php index 0ad3d1a..f210794 100644 --- a/functions/remove-block-library.php +++ b/functions/remove-block-library.php @@ -3,6 +3,10 @@ function smartwp_remove_wp_block_library_css(){ wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style( 'wp-block-library-theme' ); + wp_dequeue_style( 'wp-components-theme' ); + wp_dequeue_style( 'wp-components' ); + wp_dequeue_style( 'components' ); + wp_dequeue_style( 'classic-theme-styles' ); wp_dequeue_style( 'wc-blocks-style' ); // Remove WooCommerce block CSS wp_deregister_style( 'dashicons' ); add_filter( 'show_admin_bar', '__return_false' );