'', 'width' => 1000, 'height' => 250, 'flex-width' => true, 'flex-height' => true, )); // Add support for custom background add_theme_support('custom-background', array( 'default-color' => 'ffffff', )); // Add support for core custom logo add_theme_support('custom-logo', array( 'height' => 250, 'width' => 250, 'flex-width' => true, 'flex-height' => true, )); // Add support for post formats add_theme_support('post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat', )); // Add editor styles add_editor_style('editor-style.css'); // Register nav menus register_nav_menus(array( 'primary' => esc_html__('Primary Menu', 'blog-desheecode'), 'footer' => esc_html__('Footer Menu', 'blog-desheecode'), )); // Add theme support for selective refresh for widgets. add_theme_support('customize-selective-refresh-widgets'); // Add support for responsive embeds add_theme_support('responsive-embeds'); // Add support for full and wide align images add_theme_support('align-wide'); } add_action('after_setup_theme', 'blog_desheecode_setup'); /** * Set the content width in pixels */ function blog_desheecode_content_width() { $GLOBALS['content_width'] = apply_filters('blog_desheecode_content_width', 640); } add_action('after_setup_theme', 'blog_desheecode_content_width', 0); /** * Register block patterns */ function blog_desheecode_register_block_patterns() { register_block_pattern( 'blog-desheecode/hero-section', array( 'title' => __('Hero Section', 'blog-desheecode'), 'description' => __('A hero section with heading and text', 'blog-desheecode'), 'content' => '
A modern WordPress theme for bloggers