'', 'default-text-color' => 'faf9f5', 'width' => 1600, 'height' => 275, 'flex-height' => true, 'flex-width' => true, 'wp-head-callback' => 'libretto_header_style', ) ) ); } add_action( 'after_setup_theme', 'libretto_custom_header_setup' ); if ( ! function_exists( 'libretto_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see libretto_custom_header_setup(). */ function libretto_header_style() { $header_text_color = get_header_textcolor(); $header_image = libretto_get_header_image(); // If no custom options for text are set, and there's no custom header, return early. // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value if ( HEADER_TEXTCOLOR === $header_text_color AND ! isset( $header_image ) ) { return; } // If we get this far, we have custom styles. Let's do this. ?>