tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); add_editor_style( 'css/editor-style.css' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ add_theme_support( 'post-thumbnails' ); add_image_size( 'colorist_recent-post-img', 380, 350, true); add_image_size( 'colorist_service-img', 100, 100, true); add_image_size( 'colorist-blog-full-width', 1200,350, true ); add_image_size( 'colorist-small-featured-image-width', 450,350, true ); add_image_size( 'colorist-large-width', 800,350, true ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'colorist' ), ) ); /* * 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 http://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', ) ); add_theme_support( 'custom-background' ); add_theme_support( 'custom-logo' ); } endif; // colorist_setup add_action( 'after_setup_theme', 'colorist_setup' ); /** * Register widget area. * * @link http://codex.wordpress.org/Function_Reference/register_sidebar */ function colorist_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'colorist' ), 'id' => 'sidebar-1', 'description' => '', 'before_widget' => '', 'before_title' => '