• Resolved figure2

    (@figure2)


    Here is the URL for our website, a child these of Generatepress. There should be a logo to the left of the “Bringing the Arts to Our Community” tagline. The logo has been set in the Customizer. Here is a screenshot: https://www.coastalartsguildct.com/wp-content/uploads/2016/05/CAGCT_Customizer_Logo.jpg

    I’ve checked the header file and all looks OK. Here is the logo section of the header.php file:

    <?php 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 $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; ?>

    Here is a screenshot of the source code showing the logo section is missing: https://www.coastalartsguildct.com/wp-content/uploads/2016/05/CAGCT_Header_Code.jpg

    This just happened in the last day or so. Any idea what is causing it?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    We just switched to using the WordPress 4.5 logo functionality.

    Replace the above snippet in your child theme with this:

    <?php generate_construct_logo() ;?>

    Thread Starter figure2

    (@figure2)

    All fixed. Thanks!

    Thread Starter figure2

    (@figure2)

    Resolved

    Theme Author Tom

    (@edge22)

    You’re welcome ??

    Tom,
    this fix is not working for me, there’s always a syntax error. Sorry I am no programmer, so it may be a bit dumb question.

    I replaced that exact snippet in my header.php with the line you provided, but got the syntax error.

    Do I need to add the <?php endif; ?> after your line, or just replace the first line of the code? Or anything else?

    Thanks.

    @romanko: This is not your topic. If you require assistance then, as per the Forum Welcome, please post your own topic.

    Theme Author Tom

    (@edge22)

    Hi Romanko,

    If you want to post your own topic and include the full code from your header.php in a pastebin (https://pastebin.com) I’ll be happy to help you track down the syntax error ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Header logo disappeared in child theme’ is closed to new replies.