How do I add global CSS from a Full-Site Editor plugin?
-
I’m trying to write a FSE sidebar plugin that will end up changing/adding site-wide CSS. I’ve spent nearly two full days trudging through the docs and Gutenberg source trying to track down how the
<style>
elements in the FSE’s<head>
are rendered/updated in real-time.I know it’s possible, because I can watch a
<style>
block change when I adjust Global Styles colors, but I can’t find where the logic lives to emit the CSS. I’d like the CSS my plugin creates to update in real-time, too. Can anyone give me a pointer to where that rendering happens?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘How do I add global CSS from a Full-Site Editor plugin?’ is closed to new replies.