*
* @link https://developer.wordpress.org/themes/functionality/custom-headers/
*
* @package Blue Lily
*/
/**
* Set up the WordPress core custom header feature.
*
* @uses blue_lily_header_style()
*/
function blue_lily_custom_header_setup() {
add_theme_support( 'custom-logo', array(
'width' => 155,
'height' => 44,
'flex-height' => true,
'flex-width' => true,
'header-text' => array( 'site-title', 'site-description' ),
) );
add_theme_support( 'custom-header', array(
'default-image' => '',
'default-text-color' => '049DE1',
'width' => 1900,
'height' => 200,
'flex-width' => true,
'flex-height' => true,
'wp-head-callback' => 'blue_lily_header_style',
) );
}
add_action( 'after_setup_theme', 'blue_lily_custom_header_setup' );
if ( ! function_exists( 'blue_lily_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog.
*
* @see blue_lily_custom_header_setup().
*/
function blue_lily_header_style() {
$header_text_color = get_header_textcolor();
/*
* If no custom options for text are set, let's bail.
* get_header_textcolor() options: Any hex value, 'blank' to hide text. Default: HEADER_TEXTCOLOR.
*/
//if ( HEADER_TEXTCOLOR === $header_text_color ) {
// return;
//}
// If we get this far, we have custom styles. Let's do this.
?>