Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Custom Header Image #467

Closed
ghost opened this issue Sep 16, 2015 · 2 comments
Closed

Custom Header Image #467

ghost opened this issue Sep 16, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 16, 2015

I have a question I've just installed your theme and love it so far, the only problem I have is when I go to the theme customizer and add a new Header Image it won't show up. Is there something I missed or do I have to add some code into the theme. Thank you for your help.

@arielnoname
Copy link

This is part of my header.php for example

screen shot 2015-11-22 at 8 15 07 pm

@ghost
Copy link

ghost commented Nov 24, 2015

@ghost, Header Image is used as background image for the masthead in WordPress default themes.

Header Image can be used for a logo image. This snippet is from Automattic _s underscores theme:

<?php if ( get_header_image() ) : ?>
<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. ?>

https://github.com/Automattic/_s

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants