'', 'default-text-color' => '000000', 'width' => 840, 'height' => 154, 'flex-height' => false, 'wp-head-callback' => 'bosco_header_style', 'admin-head-callback' => 'bosco_admin_header_style', 'admin-preview-callback' => 'bosco_admin_header_image', ) ) ); } add_action( 'after_setup_theme', 'bosco_custom_header_setup' ); if ( ! function_exists( 'bosco_header_style' ) ) : /** * Styles the header image and text displayed on the blog */ function bosco_header_style() { $header_image = get_header_image(); $header_text_color = get_header_textcolor(); // If no custom header image and no custom color for text is set, let's bail. if ( empty( $header_image ) && display_header_text() && $header_text_color === get_theme_support( 'custom-header', 'default-text-color' ) ) return; // If we get this far, we have custom styles. ?> Header admin panel. */ function bosco_admin_header_style() { $header_image = get_header_image(); $header_text_color = get_header_textcolor(); ?> Header admin panel. */ function bosco_admin_header_image() { ?>