2000, 'height' => 400, 'flex-height' => true, 'header-text' => true, 'video' => true, 'header-text' => false, ) ); } add_action( 'after_setup_theme', 'foodhunt_custom_header_setup' ); // Filter the get_header_image_tag() for option of adding the link back to home page option function foodhunt_header_image_markup( $html, $header, $attr ) { $output = ''; if ( ( get_theme_mod( 'foodhunt_slider_activation', '0' ) == 0 ) || ( ( get_theme_mod( 'foodhunt_slider_activation', '0' ) == 1 ) && ! is_front_page() ) ) { $header_image = get_header_image(); if( ! empty( $header_image ) ) { $output .= '
' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '
'; } } return $output; } function foodhunt_header_image_markup_filter() { add_filter( 'get_header_image_tag', 'foodhunt_header_image_markup', 10, 3 ); } add_action( 'foodhunt_header_image_markup_render','foodhunt_header_image_markup_filter' ); // Video Header introduced in WordPress 4.7 if ( ! function_exists( 'foodhunt_the_custom_header_markup' ) ) { /** * Displays the optional custom media headers. */ function foodhunt_the_custom_header_markup() { if ( ( function_exists( 'the_custom_header_markup' ) && ( ( get_theme_mod( 'foodhunt_slider_activation', '' ) == 0 ) || ( ( get_theme_mod( 'foodhunt_slider_activation', '0' ) == 1 ) && ! is_front_page() ) ) ) || ( function_exists( 'the_custom_header_markup' ) && is_home() ) ) : do_action( 'foodhunt_header_image_markup_render' ); the_custom_header_markup(); else : if ( get_theme_mod( 'foodhunt_slider_activation' ) == 0 ) { $header_image = get_header_image(); ?>
<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>