tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * Enable support for custom logo. * * @link https://codex.wordpress.org/Theme_Logo */ add_theme_support( 'custom-logo', array( 'height' => 200, 'width' => 580, 'flex-height' => true, 'flex-width' => true, 'header-text' => array( 'site-title', 'site-description' ), ) ); // Enable support for Post Thumbnails on posts and pages. add_theme_support( 'post-thumbnails' ); add_image_size( 'keratin-featured-image', 1576, 1182, true ); add_image_size( 'keratin-featured-image-archive', 776, 584, true ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'keratin' ), ) ); // This theme styles the visual editor to resemble the theme style. add_editor_style( array( 'editor-style.css', keratin_google_fonts_url() ) ); /* * Enable support for Post Formats. * See http://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'aside', 'audio', 'gallery', 'image', 'link', 'quote', 'video', ) ); // Setup the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'keratin_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); // This theme uses its own gallery styles. add_filter( 'use_default_gallery_style', '__return_false' ); } endif; // keratin_setup add_action( 'after_setup_theme', 'keratin_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 keratin_content_width() { $GLOBALS['content_width'] = apply_filters( 'keratin_content_width', 343 ); } add_action( 'after_setup_theme', 'keratin_content_width', 0 ); /** * Register widgetized area and update sidebar with default widgets. */ function keratin_widgets_init() { // Widget Areas register_sidebar( array( 'name' => __( 'Main Sidebar', 'keratin' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '