Editor styles for different pages / templates
-
Hi everyone,
I recently developed a custom WordPress block theme that includes multiple templates. One for the front page (no background), a default one (white background), and one with a sidebar (66% content width, white background). I’ve also created an editor-style.css file to style the editor’s appearance.
My issue is that I want the editor to display different background colors and content widths depending on the page / template being edited. With the classic editor, I could use something like .page-id-XYZ to target individual pages with CSS on the page, but I can’t seem to find an equivalent in the block editor.
I’m wondering if there’s a way to target individual templates or pages in the block editor, or if I can create multiple editor-style.css files to achieve the desired effect?
Any help or guidance would be greatly appreciated. Thank you!
- The topic ‘Editor styles for different pages / templates’ is closed to new replies.