A couple questions about styles in the Wordpress block editor #172
Replies: 4 comments 36 replies
-
|
I checked the styles that are applied in the Wordpress block editor and I'm wondering where these styles are coming from and how I can reset them like how Tailwind preflight does for the front-end. Or is that a bad idea? This is one of my custom blocks: |
Beta Was this translation helpful? Give feedback.
-
|
Hi Dylan—Thanks for posting this! I'll go through your bullet points in order:
I think it's worth trying Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Just to jump in here, as I have a similar expectation. New to _TW. I generated my theme, added custom fonts and overrode the values The front end immediately picks up these fonts but the backend doesn't. The block editor is still the default Wordpress fonts. I can see the blocks in the editor are wrapped in the prose class but it doesn't seem to do anything. My expectation would be they do and from reading above that's what Dylande would like as well. Wrapping custom blocks in no-prose to revert it. I realise it's a complex issue but must be a common expectation, is the recommendation to leave the editor fonts as-is? |
Beta Was this translation helpful? Give feedback.






Uh oh!
There was an error while loading. Please reload this page.
-
Hi Greg and the community,
A couple questions about the usage of styles in the Wordpress block editor:
xxx_content_class('entry-content')function incontent-page.phpwithclass="entry-content"?font-familyin the Wordpress block editor isseriffor me. When I try to set it tosans-serifinbase.cssit doesn't get inherited. Basically how do I go about making the styles in the Wordpress block editor as close to the styles on the front-end?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions