tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /** * This theme uses wp_nav_menu() in one location. */ register_nav_menus( array( 'primary' => esc_html__( 'Primary Menu', 'capoverso' ), 'home' => esc_html__( 'Home Page Menu', 'capoverso' ), ) ); /* * Enable support for Post Thumbnails on posts and pages. */ add_theme_support( 'post-thumbnails' ); add_image_size( 'capoverso-home', '2000', '9999', false ); add_image_size( 'capoverso-site-logo', '510', '510' ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); /** * Enable support for Post Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); /** * Setup the WordPress core custom background feature. */ add_theme_support( 'custom-background', apply_filters( 'capoverso_custom_background_args', array( 'default-color' => 'd8d8d8', 'default-image' => get_template_directory_uri() . '/img/capoverso-default-background2x.png', ) ) ); } endif; // capoverso_setup add_action( 'after_setup_theme', 'capoverso_setup' ); /** * Register widgetized area and update sidebar with default widgets */ function capoverso_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'capoverso' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '