• Resolved bismafs

    (@bismafs)


    After updating the theme to version 1.1.7 my logo header image doesn’t shows up anymore. Tried switching to text only and it works normal (the web title and description are visible). But when using Logo Header only the image doesn’t shows up. Also when using Logo and Text, only the text visible but the logo image doesn’t. Checked the source and there is no code referring to my logo header image at all. Fyi, I’m using child theme.
    Does anyone have the same problem? Thx

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yes, i have same problem.

    I resolved it. Child theme (/header.php) was a problem. So, you must edit header.php in child folder.

    Thread Starter bismafs

    (@bismafs)

    Can you be more specific what to edit in header.php? Thx

    You can use diffchecker site, copy your child header.php and updated header.php, and you will see difference, so then you can edit child file.

    Thread Starter bismafs

    (@bismafs)

    Got it, thank you!

    So this is the update in my case:

    Previous child theme header.php:

    <div id="header-left-section">
    <?php
    if((get_theme_mod('colormag_header_logo_placement', 'header_text_only') == 'header_logo_only') && get_theme_mod('colormag_logo', '') != '') {
    ?>
    <div id="header-logo-image">
    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php echo esc_url(get_theme_mod('colormag_logo')); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"></a>
    <?php } ?>							
    </div><!-- #header-logo-image -->

    Change the childe theme header.php referring to the parent theme header.php to:

    <div id="header-left-section">
    <?php
    if((get_theme_mod('colormag_header_logo_placement', 'header_text_only') == 'header_logo_only')) {
    ?>
    <div id="header-logo-image">
    <?php if (get_theme_mod('colormag_logo', '') != '') { ?>
    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php echo esc_url(get_theme_mod('colormag_logo')); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"></a>
    <?php } ?>
    
    <?php if (function_exists('the_custom_logo') && has_custom_logo( $blog_id = 0 )) { colormag_the_custom_logo(); } ?>								
    
    </div><!-- #header-logo-image -->
    • This reply was modified 8 years, 2 months ago by bismafs.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Logo Header Image Not Showing After Update’ is closed to new replies.