Enqueue styles in new site editor in WordPress 5.9

So apparently for the site editor, you need to add the styles a little bit differently. You need to use the add_editor_style function. add_action(‘after_setup_theme’, ‘my_add_editor_styles_to_full_site_editing’); function my_add_editor_styles_to_full_site_editing() { add_theme_support(‘editor-styles’); add_editor_style(‘site-editor.css’); } Becareful how you style your stylesheet This function adds your styles inline wrapped in the .editor-styles-wrapper class.

How to transform block variant to default version?

Carolina Nymark pointed out, that there is possibility to filter transforms as any other settings, so one can modify the transformation like this: const { addFilter } = wp.hooks; const { assign, merge } = lodash; const { createBlock } = wp.blocks; function transformHeading(settings, name) { // Filter only heading. if (name !== ‘core/heading’) { … Read more