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( 'aileron-featured-image', 1240, 620, true ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'aileron' ), ) ); /* * Switch default core markup for search form, comment form, comments, gallery and captions * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); // This theme styles the visual editor to resemble the theme style. add_editor_style( array( 'editor-style.css', aileron_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( 'aileron_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); } endif; // aileron_setup add_action( 'after_setup_theme', 'aileron_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 aileron_content_width() { $GLOBALS['content_width'] = apply_filters( 'aileron_content_width', 620 ); } add_action( 'after_setup_theme', 'aileron_content_width', 0 ); /** * Register widgetized area and update sidebar with default widgets. */ function aileron_widgets_init() { // Widget Areas register_sidebar( array( 'name' => __( 'Main Sidebar', 'aileron' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '