WordPress发现有css引入:

wp-includes/css/dist/block-library/style.min.css

但是这个css其实一般用不到,如何移除呢?functions.php加如下代码即可:

function wpassist_remove_block_library_css(){
wp_dequeue_style( 'wp-block-library' );
}
add_action( 'wp_enqueue_scripts', 'wpassist_remove_block_library_css' );

相关参考:

[How To] Remove Block Library CSS from WordPress



Related Posts: WordPress如何移除block-library/style.min.css :

留言