40, 'width' => 180, 'flex-height' => true, 'flex-width' => true, ] ); add_theme_support( 'html5', [ 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script', ] ); // Load main.css inside the block editor so previews match the frontend add_editor_style( 'assets/css/main.css' ); // Navigation menus (used by oribi/site-header block) register_nav_menus( [ 'primary' => __( 'Primary Menu', 'ots-theme' ), 'footer' => __( 'Footer Menu', 'ots-theme' ), ] ); } ); /* ── Block pattern categories ──────────────────────────────── */ add_action( 'init', function () { register_block_pattern_category( 'oribi-pages', [ 'label' => __( 'Oribi Tech - Pages', 'ots-theme' ), ] ); register_block_pattern_category( 'oribi-sections', [ 'label' => __( 'Oribi Tech - Sections', 'ots-theme' ), ] ); } ); /* ── Remove core block patterns if desired ─────────────────── */ add_action( 'after_setup_theme', function () { remove_theme_support( 'core-block-patterns' ); } );