tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * Enable support for Post Thumbnails on posts and pages. * * See: https://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ add_theme_support( 'post-thumbnails' ); // This theme uses wp_nav_menu() in two locations. register_nav_menus( array( 'primary' => esc_html__( 'Primary Menu', 'boson' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); /* * Enable support for Post Formats. * * See: https://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'image', 'gallery' ) ); /* * This theme styles the visual editor to resemble the theme style, * specifically font, colors, icons, and column width. */ add_editor_style( array( 'style.css', 'style_rtl.css' ) ); add_theme_support( "custom-header", array() ); add_theme_support( 'custom-background', array() ); } endif; // boson_setup add_action( 'after_setup_theme', 'boson_setup' ); /** * Register widget area. * * @since Boson 1.0 * * @link https://codex.wordpress.org/Function_Reference/register_sidebar */ function boson_widgets_init() { //Primary Sidebar register_sidebar( array( 'name' => esc_html__( 'Default Sidebar Widget Area', 'boson' ), 'id' => 'primary', 'description' => esc_html__( 'Appears in sidebar area.', 'boson' ), 'before_widget' => '
', 'before_title' => '