2000, 'height' => 700, 'uploads' => true, 'default-text-color' => '000000', 'wp-head-callback' => 'adagio_header_style', ) ) ); } add_action( 'after_setup_theme', 'adagio_custom_header_setup' ); if ( ! function_exists( 'adagio_header_style' ) ) : function adagio_header_style() { wp_enqueue_style( 'adagio-style', get_stylesheet_uri() ); $header_text_color = get_header_textcolor(); $position = "absolute"; $clip ="rect(1px, 1px, 1px, 1px)"; if ( ! display_header_text() ) { $custom_css = '.site-title, .site-description { position: '.$position.'; clip: '.$clip.'; }'; } else{ $custom_css = 'h1.site-title, h2.site-description { color: #' . $header_text_color . '; }'; } wp_add_inline_style( 'adagio-style', $custom_css ); } add_action( 'wp_enqueue_scripts', 'adagio_header_style' ); endif;