Remove Gutenberg Block Library CSS from loading on the frontend

PHOTO EMBED

Wed May 12 2021 22:37:45 GMT+0000 (UTC)

Saved by @Alz #php #wordpress

//*****---   Remove Gutenberg Block Library CSS from loading on the frontend  ---*****
//===================================================================
function smartwp_remove_wp_block_library_css(){
 wp_dequeue_style( 'wp-block-library' );
 wp_dequeue_style( 'wp-block-library-theme' );
}
add_action( 'wp_enqueue_scripts', 'smartwp_remove_wp_block_library_css' );
content_copyCOPY