esc_html__( 'Primary Menu', 'blogism' ), 'footer' => esc_html__( 'Footer Menu', 'blogism' ), 'social' => esc_html__( 'Social Menu', 'blogism' ), 'notfound' => esc_html__( '404 Menu', 'blogism' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'gallery', 'caption', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'blogism_custom_background_args', array( 'default-color' => 'f9f9f9', 'default-image' => '', ) ) ); // Set up the WordPress core custom header feature. add_theme_support( 'custom-header', apply_filters( 'blogism_custom_header_args', array( 'default-image' => '', 'width' => 1920, 'height' => 700, 'flex-height' => true, 'header-text' => false, ) ) ); // Enable support for selective refresh of widgets in Customizer. add_theme_support( 'customize-selective-refresh-widgets' ); // Enable support for custom logo. add_theme_support( 'custom-logo' ); // Add support for Block Styles. add_theme_support( 'wp-block-styles' ); // Add support for editor styles. add_theme_support( 'editor-styles' ); // Add support for full and wide align images. add_theme_support( 'align-wide' ); // 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__( 'Small', 'blogism' ), 'shortName' => esc_html__( 'S', 'blogism' ), 'size' => 13, 'slug' => 'small', ), array( 'name' => esc_html__( 'Normal', 'blogism' ), 'shortName' => esc_html__( 'M', 'blogism' ), 'size' => 16, 'slug' => 'normal', ), array( 'name' => esc_html__( 'Large', 'blogism' ), 'shortName' => esc_html__( 'L', 'blogism' ), 'size' => 42, 'slug' => 'large', ), array( 'name' => esc_html__( 'Huge', 'blogism' ), 'shortName' => esc_html__( 'XL', 'blogism' ), 'size' => 56, 'slug' => 'huge', ), ) ); // Add support for custom color scheme. add_theme_support( 'editor-color-palette', array( array( 'name' => esc_html__( 'White', 'blogism' ), 'slug' => 'white', 'color' => '#ffffff', ), array( 'name' => esc_html__( 'Black', 'blogism' ), 'slug' => 'black', 'color' => '#111111', ), array( 'name' => esc_html__( 'Gray', 'blogism' ), 'slug' => 'gray', 'color' => '#f4f4f4', ), array( 'name' => esc_html__( 'Yellow', 'blogism' ), 'slug' => 'yellow', 'color' => '#e5ae4a', ), array( 'name' => esc_html__( 'Blue', 'blogism' ), 'slug' => 'blue', 'color' => '#357fe2', ), ) ); // Enable support for footer widgets. add_theme_support( 'footer-widgets', 4 ); // Load Supports. require_once trailingslashit( get_template_directory() ) . 'inc/support.php'; /* * Enable support for Post Formats. * * See: https://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat', ) ); } endif; add_action( 'after_setup_theme', 'blogism_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ function blogism_content_width() { $GLOBALS['content_width'] = apply_filters( 'blogism_content_width', 640 ); } add_action( 'after_setup_theme', 'blogism_content_width', 0 ); /** * Register widget area. */ function blogism_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Primary Sidebar', 'blogism' ), 'id' => 'sidebar-1', 'description' => esc_html__( 'Add widgets here to appear in your Primary Sidebar.', 'blogism' ), 'before_widget' => '', 'before_title' => '