Archived topic
Remove css/stylings for typography in WP-admin
3 replies · Started by John on June 9, 2022
Hi there,
I have noticed recently that when I change typograpy or add certain stylings to H-tags, that the css carries over to the Gutenberg Blog Post editor.
How can this be excluded from the wp-admin - so the stylings only apply to the live Generatepress theme - not the wp-admin?
Many thanks!
Hi John,
To clarify, are you wanting to remove styling added by GP when using the WP Block Editor?
If so, here’s a PHP snippet you may try adding:
add_filter( 'generate_show_block_editor_styles', '__return_false' );
Kindly let us know how it goes.
Yes that was it!
Thank you - is that something I will need to add to all my builds from now on?
Appreciate your speed and accuracy!
Cheers!
Hi there,
yes, if you want to remove the editor styles you will need to add that PHP Snippet to your sites