'%s/resources/images/header-bg.jpg', 'default-text-color' => 'fff', 'width' => 1200, 'height' => 528, 'flex-height' => true, 'wp-head-callback' => 'bovity_header_style', ) ) ); } add_action( 'after_setup_theme', 'bovity_custom_header_setup' ); if ( ! function_exists( 'bovity_header_style' ) ) : /** * Styles the header image and text displayed on the blog. * * @see bovity_custom_header_setup(). */ function bovity_header_style() { $css = ''; $header_title_color = get_theme_mod('header_title_color','#fff'); $header_tagline_color = get_theme_mod('header_tagline_color','#fff'); // If we get this far, we have custom styles. Let's do this. // Has the text been hidden? if ( display_header_text() ) : $css .=' .avadanta-title a { color: '.esc_attr( $header_title_color ).'; } .avadanta-desc { color: '.esc_attr( $header_tagline_color ).'; font-size: 14px; }'; endif; wp_add_inline_style( 'bovity-style', $css ); ?>