• Resolved carbonrich

    (@carbonrich)


    Gutenberg (currently) dumps a load of inline FSE-related CSS into every website regardless of whether it’s using FSE or not. Would be great to be able to remove this, alongside SVG duotones etc.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author room34

    (@room34)

    Great suggestion! I will work on this for the next update.

    Plugin Author room34

    (@room34)

    OK, the new Remove global styles (inline CSS) setting is now available in version 2.5.0.

    Note that this only dequeues the global-styles CSS inserted by the Block Editor; your theme or plugins may insert their own inline CSS, and this is not removed. (And, I would argue, shouldn’t be removed by this plugin because it only modifies WP core behavior, and also because the inline CSS inserted by the theme/plugins may not be Block Editor-related, and may be essential to proper functionality.)

    Thread Starter carbonrich

    (@carbonrich)

    Amazing work, thanks!

    Sorry, your plugin doesn’t remove any global styles. Are you sure it works in a child theme?

    Plugin Author room34

    (@room34)

    I have just confirmed that it does work as it should. With the setting turned off, there will be a block of CSS in your HTML that begins with this tag:

    <style id='global-styles-inline-css' type='text/css'>

    With the setting turned on, that block goes away. Note that some plugins or themes may insert their own additional inline CSS; No Nonsense does not have a way of checking for other inline CSS, and I do not intend to add that as a feature since it would most likely break the appearance of those plugins/themes.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Feature request: Remove Gutenberg global styles’ is closed to new replies.