'',
'default-text-color' => 'ffffff',
'width' => 1980,
'height' => 300,
'flex-height' => true,
'wp-head-callback' => 'inspirelite_custom_header_style',
'admin-head-callback' => 'inspirelite_admin_header_style',
'admin-preview-callback' => 'inspirelite_admin_header_image',
) ) );
}
add_action( 'after_setup_theme', 'inspirelite_custom_header_setup' );
}
if ( ! function_exists( 'inspirelite_custom_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog
*
* @see inspirelite_custom_header_setup().
*/
function inspirelite_custom_header_style() {
$header_text_color = get_header_textcolor();
if ( add_theme_support( 'custom-header' ) == $header_text_color ) {
return;
}
// If we get this far, we have custom styles. Let's do this.
?>
Header admin panel.
*
* @see inspirelite_custom_header_setup().
*/
function inspirelite_admin_header_style() {
?>
Header admin panel.
*
* @see inspirelite_custom_header_setup().
*/
function inspirelite_admin_header_image() {
if ( get_header_image() ) : ?>