You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Styles coming from __experimentalStyles are not enqueued in the post editor for themes without theme.json #46818
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Type] BugAn existing feature does not function as intended
Search for .editor-styles-wrapper .wp-block-pullquote.
The expected behavior is that there should be a style rule containing the font size and line height defined in the __experimentalStyle of the pullquote block embedded into the HTML document. However, that style rule is not present.
This could be done with a conditional add_action( 'enqueue_block_editor_assets', 'global-styles' ); But it adds all the global styles.
Are we looking for a solution that only adds the styles from block.json __experimentalStyle?
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Type] BugAn existing feature does not function as intended
Activity
carolinan commentedon Jan 23, 2023
This could be done with a conditional
add_action( 'enqueue_block_editor_assets', 'global-styles' );But it adds all the global styles.Are we looking for a solution that only adds the styles from block.json __experimentalStyle?
carolinan commentedon Mar 14, 2023
Should the style not be added to classic.scss? It is loaded with https://developer.wordpress.org/reference/functions/wp_enqueue_classic_theme_styles/
In 6.2 it uses wp_theme_has_theme_json() :
t-hamano commentedon Mar 30, 2026
I confirmed that this problem has been fixed. I suspect it's related to the classic theme internally supporting global styles. #73971