How do I make my block-editor styles match my front-end styles?

Just use the add_editor_styles() function on the after_setup_theme() hook for your editor styles, and enqueue the same style sheet using wp_enqueue_style() on the wp_enqueue_scripts() hook. Optionally, you can also use wp_style_add_data() to inline the styles for better performance. There’s no need to manually add the .editor-styles-wrapper class before other selectors if you enqueue the style … Read more

How to set the background color of a template part (Header/Footer) in Twenty Twentythree?

The Twenty Twenty-Three theme comes with an inbuilt “Editor” option that exists under the “Appearance” menu. Appearance >> Editor Once you click on the “Editor(beta)” option then you can select the header or footer area and after that, you can customize their stylings like Background Color, Text Color, and Link Color. The theme also provides … Read more

block theme FSE – save changes to the theme?

I’ve done a lot of digging into the subject and looks like they were working on some updates to Gutenberg that would allow them to be saved onto the filesystem: youtu.be/8Vj_Oh6jMHw?t=281. But those efforts were later abandoned: github.com/WordPress/gutenberg/pull/40385, as adding that support into WordPress core was complicated. I then found this plugin that lets one … Read more