• Resolved JGHarbour

    (@jgharbour)


    After updating the custom header image no longer appears. I have tried changing the image, re-uploading the image, and even re-installing the theme.

    Is there a setting somewhere that I missed?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Yes after update, i lost my header image too. There is a modifying option for it but it isnt working now.. Update brings a new logo option on header but its sizes are not big like header image option So i cant use my logo (its my signiture) on header.

    I too am having this problem after updating. In the Customize screen it shows my Header image as selected but this doesn’t appear on the actual webpage.

    Any solution to this problem. I updated to the newest version of wordpress, and downloaded jetpack, and now my header image ain’t displaying. Any solutions?

    This seems to be a problem with Jetpack. Here is a quick fix:

    (full disclosure: I don’t speak PHP and have absolutely no idea if this will break you website or eat your dog, so be warned – and please warn others if you know this is in any way wrong and/or dangerous)

    From your Dashboard go to Appearance -> Editor and on the right select Header (header.php).
    Scroll down to where it says

    <?php function decode_create_header_image() {
    	// If Jetpack's site logo exists, give it preference over Decode's.
    	if ( function_exists( 'jetpack_the_site_logo' ) ) :
    		jetpack_the_site_logo();
    	// If no Jetpack site logo exists, use Decode's logo, if avaliable.
    	elseif ( get_header_image() != '' ) : ?>
    		<a class="site-logo-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    			<img class="site-logo" src="<?php header_image(); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" alt="">
    		</a>
    	<?php endif;
    }

    there, remove the part where Decode hands over preference to Jetpack so the code looks like this:

    <?php function decode_create_header_image() {
    	// Use Decode's logo.
    	if ( get_header_image() != '' ) : ?>
    		<a class="site-logo-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    			<img class="site-logo" src="<?php header_image(); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" alt="">
    		</a>
    	<?php endif;
    }

    Click “Update File”, Reload and enjoy your header ??

    clemenssielaff’s response worked for me. Thanks!

    Seems like this has been fixed. Please refer to: the solution above.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Header Image no longer working’ is closed to new replies.