2000, 'height' => 400, 'flex-height' => true, 'header-text' => true, 'video' => true, 'header-text' => false, ) ); } add_action( 'after_setup_theme', 'estore_custom_header_setup' ); // Filter the get_header_image_tag() for option of adding the link back to home page option function estore_header_image_markup( $html, $header, $attr ) { $output = ''; $header_image = get_header_image(); if( ! empty( $header_image ) ) { $output .= '
' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '
'; } return $output; } function estore_header_image_markup_filter() { add_filter( 'get_header_image_tag', 'estore_header_image_markup', 10, 3 ); } add_action( 'estore_header_image_markup_render','estore_header_image_markup_filter' ); // Video Header introduced in WordPress 4.7 if ( ! function_exists( 'estore_the_custom_header_markup' ) ) { /** * Displays the optional custom media headers. */ function estore_the_custom_header_markup() { if ( function_exists('the_custom_header_markup') ) { do_action( 'estore_header_image_markup_render' ); the_custom_header_markup(); } else { $header_image = get_header_image(); if( ! empty( $header_image ) ) { ?>
<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>