WordPressのページをデベロッパーツールで見てみると、見覚えのないスタイルシートが読み込まれている。
<link rel="stylesheet" id="wp-block-library-css" href="../wp/wp-includes/css/dist/block-library/style.min.css">
functions.phpに以下のコードを追記することで、これを読み込まないようにできる。
add_action('wp_enqueue_scripts', 'remove_block_library_style'); function remove_block_library_style(){ wp_dequeue_style('wp-block-library'); wp_dequeue_style('wp-block-library-theme'); }