[Resolved] Header image disappeared with update

Home Forums Support [Resolved] Header image disappeared with update

Home Forums Support Header image disappeared with update

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #219561
    Alice

    Hi. it has been a long time since I touched a website, and that time has been full of drama. So, I return with much puzzlement to a website I made a year back.

    I updated WordPress + GP (free version + add-on for spacing), and my header has disappeared! I’ve added a widget in the header space so you can view, but the header should be the length of the screen with writing below.

    So, in the simplest and kindest language can you help me achieve the full-length header? Is it easiest with GP premium/header add-on? Or am I missing some code somewhere? (It has been so long since my head was in code world).

    http://www.ursulaholdengill.com

    #219583
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    When you go to “Customize > Site Identity”, is there a logo set?

    If not, you’ll want to re-set it there.

    Let me know ๐Ÿ™‚

    #219634
    Alice

    Header image is still in the Customise > site identity > logo place. I tried to replace the image with similar to see if it would load, but no joy.

    Ps thank you for the swift reply.

    #219635
    Tom
    Lead Developer
    Lead Developer

    Are you using any custom functions or overwriting any template files in your child theme?

    #219652
    Alice

    This is my child theme

    
     */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    	<meta charset="<?php bloginfo( 'charset' ); ?>">
    	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
    	<?php if ( ! function_exists( '_wp_render_title_tag' ) ) : ?>
    		<title><?php wp_title( '|', true, 'right' ); ?></title>
    	<?php endif; ?>
    	<link rel="profile" href="http://gmpg.org/xfn/11">
    	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    	<?php wp_head(); ?>
    </head>
    
    <body itemtype="http://schema.org/WebPage" itemscope="itemscope" <?php body_class(); ?>>
    	<?php do_action( 'generate_before_header' ); ?>
    	<a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'generate' ); ?>"><?php _e( 'Skip to content', 'generate' ); ?></a>
    	<header itemtype="http://schema.org/WPHeader" itemscope="itemscope" id="masthead" role="banner" <?php generate_header_class(); ?>>
    		<div <?php generate_inside_header_class(); ?>>
    			<?php do_action( 'generate_before_header_content'); ?>
    			<?php generate_header_items(); ?>
    			<?php do_action( 'generate_after_header_content'); ?>
    		</div><!-- .inside-header -->
    	</header><!-- #masthead -->
    	<?php do_action( 'generate_after_header' ); ?>
    	
    	<div id="page" class="hfeed site grid-container container grid-parent">
    		<div id="content" class="site-content">
    			<?php do_action('generate_inside_container'); ?>
    

    And finally functions

    
    */
    function generate_header_items() 
    {
    	$generate_settings = wp_parse_args( 
    		get_option( 'generate_settings', array() ), 
    		generate_get_defaults() 
    	);
    	
    	// Get the title and tagline
    	$title = get_bloginfo( 'title' );
    	$tagline = get_bloginfo( 'description' );
    	
    	// If the disable title checkbox is checked, or the title field is empty, return true
    	$disable_title = ( '1' == $generate_settings[ 'hide_title' ] || '' == $title ) ? true : false; 
    	
    	// If the disable tagline checkbox is checked, or the tagline field is empty, return true
    	$disable_tagline = ( '1' == $generate_settings[ 'hide_tagline' ] || '' == $tagline ) ? true : false;
    	
    	// Header widget
    	if ( is_active_sidebar('header') ) : ?>
    		<div class="header-widget">
    			<?php dynamic_sidebar( 'header' ); ?>
    		</div>
    	<?php endif;
    	
    	// Site logo
    	if ( ! empty( $generate_settings['logo'] ) ) : ?>
    		<div class="site-logo">
    			<a href="<?php echo apply_filters( 'generate_logo_href' , esc_url( home_url( '/' ) ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img class="header-image" src="<?php echo esc_url( $generate_settings['logo'] ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" /></a>
    		</div>
    	<?php endif;
    		
    	// Site title and tagline
    	if ( false == $disable_title || false == $disable_tagline ) : ?>
    		<div class="site-branding">
    			<?php if ( false == $disable_title ) : ?>
    				<p class="main-title" itemprop="headline"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
    			<?php endif;
    				
    			if ( false == $disable_tagline ) : ?>
    				<p class="site-description"><?php echo html_entity_decode( bloginfo( 'description' ) ); ?></p>
    			<?php endif; ?>
    		</div>
    	<?php endif;
    }
    endif;

    Ah! I can see some header code in functions… perhaps this is the offending material?

    #219676
    Tom
    Lead Developer
    Lead Developer

    Yea, that would explain it.

    Find this:

    // Site logo
    if ( ! empty( $generate_settings['logo'] ) ) : ?>
    	<div class="site-logo">
    		<a href="<?php echo apply_filters( 'generate_logo_href' , esc_url( home_url( '/' ) ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img class="header-image" src="<?php echo esc_url( $generate_settings['logo'] ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" /></a>
    	</div>
    <?php endif;

    And replace it with this:

    // Site logo
    generate_construct_logo();
    #219891
    Alice

    Bingo!

    (An English term of exaltation).

    Thank you. I am soon to edit another web so will seriously consider going pro GP. Your service is generous, professional and fabulous.

    #219892
    Tom
    Lead Developer
    Lead Developer

    You’re welcome! Glad I could help ๐Ÿ™‚

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.