Merge pull request #1051 from samikeijonen/issue/1041

Remove link around header image: props @samikeijonen
This commit is contained in:
Tammie Lister 2016-12-23 14:29:25 +00:00 committed by GitHub
commit 3c7fe6f91e
1 changed files with 1 additions and 5 deletions

View File

@ -4,11 +4,7 @@
* *
* You can add an optional custom header image to header.php like so ... * You can add an optional custom header image to header.php like so ...
* *
<?php if ( get_header_image() ) : ?> <?php the_header_image_tag(); ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<img src="<?php header_image(); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="">
</a>
<?php endif; // End header image check. ?>
* *
* @link https://developer.wordpress.org/themes/functionality/custom-headers/ * @link https://developer.wordpress.org/themes/functionality/custom-headers/
* *