usunięcie dodanych inline styli w WP 5.9 global-styles-inline-css
w pliku functions.php dodajemy kod:
//Remove Gutenberg Block Library CSS from loading on the frontend function nws_remove_wp_block_library_css(){ wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style( 'wp-block-library-theme' ); wp_dequeue_style( 'wc-block-style' ); // Remove WooCommerce block CSS wp_dequeue_style( 'global-styles' ); // Remove theme.json } add_action( 'wp_enqueue_scripts', 'nws_remove_wp_block_library_css', 100 );