false, 'default-text-color' => '', 'default-image' => '', 'width' => 1000, 'height' => 250, 'flex-height' => true, 'wp-head-callback' => 'simple_grey_header_style', 'admin-head-callback' => 'simple_grey_admin_header_style', ); add_theme_support( 'custom-header', $header_args ); /* * 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', 'gallery', 'link', 'image', 'quote', 'video', 'audio' ) ); } add_action( 'after_setup_theme', 'simple_grey_custom_theme_features' ); if ( ! function_exists( 'simple_grey_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see simple_grey_custom_header_setup(). */ function simple_grey_header_style() { $header_text_color = get_header_textcolor(); $header_image = get_header_image(); // If no custom header image is set, let's bail if ( $header_image === '') { return; } // If we get this far, we have custom styles. Let's do this. ?> Header admin panel. * * @see simple_grey_custom_header_setup(). */ function simple_grey_admin_header_style() { ?>