How to include site stylesheet without overriding Gutenberg editor styles
-
Under TinyMCE, the editor is displayed within an iframe, thus adding the same stylesheet used on the front end was easy. However, in Gutenberg everything (WP Navs, Gutenberg Editor and Controls, Display Content, etc) is all on the same page (no iframe). So whenever I try to add my site stylesheet to the Gutenberg editor it messes with the entire page. For example, my css for “button” or “a” tags are applied everywhere. How do I isolate my css so that it does not conflict with the other elements on the page from within the Gutenberg Editor?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to include site stylesheet without overriding Gutenberg editor styles’ is closed to new replies.