Gutenberg Compatibility in Themes — a practical guide to WordPress Gutenberg theme support with clear examples you can reuse in real projects.
WordPress Theme Development Series (48/96). Prefer one article? Read the complete WordPress theme development tutorial.
Short description
Add `align-wide`, editor styles, and color/font supports so backend matches frontend.
Editor supports
add_theme_support('align-wide');
add_theme_support('editor-styles');
add_editor_style('assets/css/editor.css');
add_theme_support('wp-block-styles');