25% off ProSNIPC25OFF

Add Theme Support for Editor Styles and Wide Alignment

Declares editor-styles, align-wide, and responsive-embeds theme support so the block editor applies the active theme stylesheet and enables wide/full-width alignment controls.

PHPby SnipCraft
php
<?php
if ( ! function_exists( 'scseed_add_block_editor_theme_support' ) ) {
    function scseed_add_block_editor_theme_support() {
        add_theme_support( 'editor-styles' );
        add_theme_support( 'align-wide' );
        add_theme_support( 'responsive-embeds' );
        add_editor_style( 'editor-style.css' );
    }
    add_action( 'after_setup_theme', 'scseed_add_block_editor_theme_support' );
}
#css#editor#gutenberg#themes