Support

Account

Home Forums Gutenberg Blocks: Load CSS only for Blocks in Gutenberg

Unread

Blocks: Load CSS only for Blocks in Gutenberg

  • I’m just trying to warm up to the ACF blocks for the Gutenberg editor. I saw that there is a way to load a stylesheet that only applies to the block with enqueue_style.

    Unfortunately, however, I also have a global stylesheet that defines, for example, font sizes, colors, columns (bootstrap), etc. If I load this stylesheet, then unfortunately my complete WordPress instance is changed with this CSS.

    So what would be the best way to load a global sytelsheet, but which only applies to the blocks in the Gutenberg editor?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.