*
* @link https://developer.wordpress.org/themes/functionality/custom-headers/
*
* @package blog_bogo
*/
/**
* Set up the WordPress core custom header feature.
*
* @uses blog_bogo_header_style()
*/
function blog_bogo_custom_header_setup() {
add_theme_support( 'custom-header', apply_filters( 'blog_bogo_custom_header_args', array(
'default-image' => '',
'default-text-color' => '000000',
'width' => 1000,
'height' => 250,
'flex-height' => true,
'wp-head-callback' => 'blog_bogo_header_style',
) ) );
}
add_action( 'after_setup_theme', 'blog_bogo_custom_header_setup' );
if ( ! function_exists( 'blog_bogo_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog.
*
* @see blog_bogo_custom_header_setup().
*/
function blog_bogo_header_style() {
$header_text_color = get_header_textcolor();
if( !empty( get_header_image() ) ){
?>