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. * * @link https://developer.wordpress.org/themes/functionality/featured-images-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', 'bassist' ), 'social' => esc_html__( 'Social Links Menu', 'bassist' ), ) ); /* * 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', ) ); add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat', ) ); /* * Add support for selective refresh of widget sidebars in the Customizer. */ add_theme_support( 'customize-selective-refresh-widgets' ); /* * This theme styles the visual editor to resemble the theme style, * specifically font, colors, icons, and column width. */ add_editor_style( array( 'css/editor-style.css', 'css/font-awesome.css' ) ); // Add theme support for Custom Header add_theme_support( 'custom-header', array( 'default-image' => '', 'default-text-color' => '000000', 'width' => 1920, 'height' => 112, 'header-text' => true, 'wp-head-callback' => 'bassist_header_style', ) ); // Add theme support for Custom Background add_theme_support( 'custom-background', array( 'default-color' => 'f9f9f9', ) ); // Add theme support for Custom Logo add_theme_support( 'custom-logo', array( 'width' => 450, 'height' => 150, 'flex-width' => true, 'flex-height' => false, ) ); } endif; add_action( 'after_setup_theme', 'bassist_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 bassist_content_width() { $GLOBALS['content_width'] = apply_filters( 'bassist_content_width', 1200 ); } add_action( 'after_setup_theme', 'bassist_content_width', 0 ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function bassist_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Sidebar', 'bassist' ), 'id' => 'sidebar-1', 'description' => esc_html__( 'Add widgets here.', 'bassist' ), 'before_widget' => '', 'before_title' => '