• Resolved AZBros

    (@azbros)


    My theme was automatically updated to Hueman 3.1.5. I’m using a child theme with lots of little edits. So far, everything on my site seems to be functioning properly except the banner image I have set in the Header. This was set using the Theme Customizer. I checked and it’s still showing the image is set, but it’s not displaying on the actual site. I tried uploading a new copy, but it just shows a box with an X in it. Any ideas how to remedy this bug?

    Thanks!

Viewing 15 replies - 1 through 15 (of 21 total)
  • Yep, same problem here. I quickly switched back to the older version! As soon as there’s a solution I’ll upgrade.

    Thread Starter AZBros

    (@azbros)

    My theme was automatically updated. To downgrade, I’m guessing I would just re-install version 3.1.3, correct? How would I prevent it from upgrading automatically (is there a setting somewhere for that)? I definitely need to downgrade until this issue is cleared up.

    Thanks!

    I think you have to look for
    add_filter( 'auto_update_theme', '__return_true' );
    in wp-config.php and change ‘true’ to ‘false’

    Thread Starter AZBros

    (@azbros)

    Okay, thank you, I’ll check into that. Hopefully they can get the bug fixed, I’d prefer to keep my theme up-to-date.

    Here’s a Codex reference for updates:
    https://codex.wordpress.org/Configuring_Automatic_Background_Updates

    I have a site that I just upgraded from v3.1.3 to v3.1.5. I had a header image background defined in CSS but not in the theme Header Image option. I deleted the CSS background image and added a Header Image in the Customizer; it worked without any problems.

    Thread Starter AZBros

    (@azbros)

    I have a site that I just upgraded from v3.1.3 to v3.1.5. I had a header image background defined in CSS but not in the theme Header Image option. I deleted the CSS background image and added a Header Image in the Customizer; it worked without any problems.

    Hi bdbrown,
    I never set any sort of custom header background image in CSS, but only a standard Header Image in the theme customizer. It was working fine before the update, but now it won’t show up. Aside from downgrading, can you think of anything that might remedy this issue? Hopefully the theme can get a new update that fixes it, but I’m not sure if that can be done any time soon.

    What happens if you remove it, Save, then add it again?

    Thread Starter AZBros

    (@azbros)

    What happens if you remove it, Save, then add it again?

    Hi bdbrown,
    When I remove it and hit Save, the top of the site actually looks the same. Instead of there being nothing between the menus at all, it still shows the little box with an X in it.

    When I try to add the header image again, it looks the same. It’s as if the theme is no longer recognizing the header image whatsoever (whether it’s set or not).

    I don’t know that this will help but a new version was just released this morning. It’s available here:
    https://github.com/presscustomizr/hueman/releases

    It should be in the theme repository soon.

    Thread Starter AZBros

    (@azbros)

    Just downloaded and installed it, but unfortunately it didn’t help with the Header Image bug. I’m hoping the issue can be addressed, I don’t like using older versions if I don’t have to. For my site, though, the Header Image is important.

    When I remove it and hit Save, the top of the site actually looks the same. Instead of there being nothing between the menus at all, it still shows the little box with an X in it

    That seems odd. That’s what you would normally see if it can’t find the image.
    So I did a quick test. Loaded up a new WP install. Downloaded Hueman v3.1.3 and installed it. Configured a header image which worked fine. Then I updated the theme to v3.1.5 from the repository. The header image is still there. So it appears to work. I know that doesn’t get us any closer to figuring out what’s going on on your site, but the theme appears to retain the image during the theme upgrade.

    Thread Starter AZBros

    (@azbros)

    That is strange. I’ve been using 3.1.3 on my local test site. I just now decided to upgrade it to 3.1.6 to see if I had the same result as you. Nope, it acted the same way my other copy did. I’m perplexed on this one.

    If it was just me that was being affected that would be different, but others have posted that they are experiencing the same problem. At this point I guess I’m forced to downgrade until we can figure out what’s actually going on here.

    Thread Starter AZBros

    (@azbros)

    I was just taking a look at the header.php file from 3.1.3 and comparing it to 3.1.6. Immediately I noticed a couple things changed in the “header-image” area:

    3.1.3
    <?php $_header_img_src = hu_get_img_src('header-image'); ?>
    and
    <img class="site-image" src="<?php echo hu_get_img_src('header-image'); ?>" alt="<?php echo get_bloginfo('name'); ?>">

    3.1.6
    <?php $_header_img_src = hu_get_img_src_from_option('header-image'); ?>
    and
    <img class="site-image" src="<?php echo hu_get_img_src_from_option('header-image'); ?>" alt="<?php echo get_bloginfo('name'); ?>">

    I’m not sure how/if this could affect the header image, but it’s just something I noticed. Would it be possible to copy the header.php file from 3.1.3 and copy it to my 3.1.6 child theme or could that pose other issues?

    Thread Starter AZBros

    (@azbros)

    Okay, I think I figured out the problem. I realized I had a copy of header.php in my child theme. The copy included the above code from version 3.1.3. For whatever reason, areas of that code were changed elsewhere, so the header image no longer worked. I simply copied the code above from the 3.1.6 version of header.php and replaced the old version in my child theme. Right now, everything seems to be working fine.

    For anyone else that’s having an issue, check your child theme to see if you have a copy of header.php. If you do, this solution might help you.

    Brilliant, AZBros! I had the problem that my logo and header-widget plugin weren’t showing up any more after the upgrade. After copying the first line from the 3.1.6 version to header.php in my child theme the problem was resolved. Just to be sure I then also did the same with the second line.
    Thanks for all the effort you put into this!

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Header Image No Longer Working (3.1.5)’ is closed to new replies.