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 four locations. register_nav_menus( array( 'primary' => __('Primary Menu', 'bn'), 'social' => __('Social Links Menu', 'bn'), 'footer' => __('Footer Menu', 'bn'), 'terms' => __('Terms Footer Menu', 'bn') // typically for terms and conditions and privacy policy )); /* * 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( 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat' )); //TODO //Fatal error: Call to undefined function Bourboneat\bn_get_color_scheme() //$color_scheme = bn_get_color_scheme(); //$default_color = trim( $color_scheme[0], '#' ); } add_action('after_setup_theme', __NAMESPACE__ . '\\setup'); /** * Register widget area. */ function widgets_init() { register_sidebar( array( 'name' => __('Widget Area', 'bn'), 'id' => 'sidebar-1', 'description' => __('Add widgets here to appear in your sidebar.', 'bn'), 'before_widget' => '', 'before_title' => '