Skip to content

Identify inline <style> that's being enqueued to block editor #53756

@webmandesign

Description

@webmandesign

What problem does this address?

Enqueing stylesheets to block editor using enqueue_block_assets action hook produces inline <style> tags in the editor.

In case of an issue, it is hard to debug as I have to investigate each individual <style> tag to see if my stylesheet was even loaded/enqueued.

What is your proposed solution?

Identify the <style> either with id or data-stylesheet (or similar) attribute like so:

block-editor-styles-identification

Metadata

Metadata

Assignees

No one assigned

    Labels

    CSS StylingRelated to editor and front end styles, CSS-specific issues.[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions