'',
'default-text-color' => 'ffffff',
'width' => 940,
'height' => 200,
'wp-head-callback' => 'mystique_header_style',
'admin-head-callback' => 'mystique_admin_header_style',
) ) );
// Set featured image size in the header, below the menu (sticky posts)
add_image_size( 'large-feature', get_theme_support( 'custom-header', 'width' ), 240, true );
}
add_action( 'after_setup_theme', 'mystique_custom_header_setup' );
if ( ! function_exists( 'mystique_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog
*
* @see mystique_custom_header_setup().
*/
function mystique_header_style() {
$header_image = get_header_image();
// If no custom options for text are set, let's bail
// get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value
if ( HEADER_TEXTCOLOR == get_header_textcolor() && empty( $header_image ) )
return;
// If we get this far, we have custom styles. Let's do this.
?>
Header admin panel.
*
* @see mystique_custom_header_setup().
*/
function mystique_admin_header_style() {
$header_image = get_header_image();
?>