esc_html__( 'Primary', 'blogbit' ), 'footer-menu' => esc_html__( 'Footer Menu', 'blogbit' ), 'expanded' => __( 'Desktop Expanded Menu', 'blogbit' ), 'mobile' => __( 'Mobile Menu', 'blogbit' ), 'footer' => __( 'Footer Menu', 'blogbit' ), 'social' => __( 'Social Menu', 'blogbit' ), ) ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'blogbit_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); add_theme_support( 'customize-selective-refresh-widgets' ); add_theme_support( 'custom-logo', array( 'height' => 250, 'width' => 250, 'flex-width' => true, 'flex-height' => true, ) ); // Add support for Block Styles. add_theme_support( 'wp-block-styles' ); // Add support for full and wide align images. add_theme_support( 'align-wide' ); // Add support for editor styles. add_theme_support( 'editor-styles' ); add_theme_support( 'register_block_pattern' ); add_theme_support( 'register_block_style' ); // Add support for responsive embeds. add_theme_support( 'responsive-embeds' ); // Add custom editor font sizes. add_theme_support( 'editor-font-sizes', array( array( 'name' => esc_html__( 'Extra small', 'blogbit' ), 'shortName' => esc_html__( 'XS', 'blogbit' ), 'size' => 13, 'slug' => 'extra-small', ), array( 'name' => esc_html__( 'Small', 'blogbit' ), 'shortName' => esc_html__( 'S', 'blogbit' ), 'size' => 16, 'slug' => 'small', ), array( 'name' => esc_html__( 'Normal', 'blogbit' ), 'shortName' => esc_html__( 'M', 'blogbit' ), 'size' => 20, 'slug' => 'normal', ), array( 'name' => esc_html__( 'Large', 'blogbit' ), 'shortName' => esc_html__( 'L', 'blogbit' ), 'size' => 42, 'slug' => 'large', ), array( 'name' => esc_html__( 'Extra large', 'blogbit' ), 'shortName' => esc_html__( 'XL', 'blogbit' ), 'size' => 58, 'slug' => 'extra-large', ), array( 'name' => esc_html__( 'Huge', 'blogbit' ), 'shortName' => esc_html__( 'XL', 'blogbit' ), 'size' => 70, 'slug' => 'huge', ), ) ); // Add support for custom color scheme. add_theme_support( 'editor-color-palette', array( array( 'name' => esc_html__( 'White', 'blogbit' ), 'slug' => 'white', 'color' => '#ffffff', ), array( 'name' => esc_html__( 'Black', 'blogbit' ), 'slug' => 'black', 'color' => '#000000', ), array( 'name' => esc_html__( 'Medium Black', 'blogbit' ), 'slug' => 'medium-black', 'color' => '#222222', ), array( 'name' => esc_html__( 'Gray', 'blogbit' ), 'slug' => 'gray', 'color' => '#999999', ), array( 'name' => esc_html__( 'Light Gray', 'blogbit' ), 'slug' => 'light-gray', 'color' => '#f8f8f8', ), array( 'name' => esc_html__( 'Orange', 'blogbit' ), 'slug' => 'orange', 'color' => '#f95042', ), array( 'name' => esc_html__( 'Pink', 'blogbit' ), 'slug' => 'pink', 'color' => '#e03ae0', ), ) ); } endif; add_action( 'after_setup_theme', 'blogbit_setup' ); function blogbit_content_width() { $GLOBALS['content_width'] = apply_filters( 'blogbit_content_width', 640 ); } add_action( 'after_setup_theme', 'blogbit_content_width', 0 );