Archived topic
Remove editor-typography.css from editor
3 replies · Started by Matthias on July 21, 2022
Is there a way to remove the "editor-typography.css" from the editor?
This stylesheet is injected as inline css here: (block-editor.php (line 140)):
if ( generate_is_using_dynamic_typography() ) {
wp_add_inline_style( 'wp-edit-blocks', wp_strip_all_tags( GeneratePress_Typography::get_css( 'core', 'editor' ) ) );
}
The reason I want to remove it is because the styles override the custom rules I specified in my theme.json file:

I've read that I can override editor-typography.css in my child theme. So I could just create an empty stylesheet and load that.
Just wondering if there's a better/cleaner way to do this :)
Hi there,
i think for now, the easiest way is to use the empty stylesheet.
Removing style that was added to the array using wp_add_inline_style looks to be a right pain.
That worked, thank you!
You're welcome