braginteractive / MDLWP

Material Design Lite WordPress Theme
http://mdlwp.com
GNU General Public License v2.0
330 stars 83 forks source link

No option to add/change header image #27

Closed Longthumb closed 8 years ago

Longthumb commented 8 years ago

I've added the following to header.php and I see no option within the Appearance settings to upload a header image. The option isn't in the customizer options either. Not sure what I'm doing wrong. Running MDLWP 1.2.2 on WP 4.5.1.

<?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. ?>
braginteractive commented 8 years ago

This isn't an issue with the them, this is a customization. You need to implement it correctly for it to work. I would recommend check out the WP docs: https://codex.wordpress.org/Function_Reference/add_theme_support#Custom_Logo

Longthumb commented 8 years ago

Thanks for the help! Your theme is superb.