Created
August 29, 2013 16:09
-
-
Save shindakun/6380100 to your computer and use it in GitHub Desktop.
WordPress child theme header snippet.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if(!is_front_page()) : ?> | |
<?php $header_image = get_header_image(); | |
if ( ! empty( $header_image ) ) : ?> | |
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a> | |
<?php endif; ?> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment