Main Header is missing all of a sudden

Main Header is missing all of a sudden

KPT
Tourist
7 0 3

My HEADER section is completely missing from website. It was active about 3 weeks when I turned off the announcement bar but today the entire section is now missing from the customization menu. 

 

{% section 'header' %} is present in theme.liquid

header.liquid is present

 

None of the code in these areas have been modified in the past 2 years. Not sure what's going on but any help is greatly appreciated. 

 

website: https://hedgehogumbrella.com/

theme: OOTS Turbo

 

Header Missing.png

 

header.pngtheme.png

Replies 5 (5)

SafeerAhmed
Excursionist
43 9 11

try this after the body tag
{% sections 'header-group' %}

Safeer Ahmed | Shopify Expert & Developer
Specialist in Shopify Development & Custom Shopify Solutions
Let's connect:safeerahmed23901@gmail.com
If my response helped, give it a like & mark it as a solution!

TheUntechnickle
Shopify Partner
462 51 115

Hey @KPT,

Hope you're doing well. Here's what I'd recommend trying:

 

 
{% section 'header' %}

 

Try adding this line back to your theme.liquid file if it's missing, or check to see if it's somehow been commented out. From the screenshots, it appears to be present but could be deactivated elsewhere.

 

Another approach would be to check if there's a settings or configuration issue that's hiding the header from the customization UI. Since you mentioned that it was working until you turned off the announcement bar, there might be a conditional statement that's incorrectly hiding the header section when the announcement bar is disabled.

 

You could also try:

  1. Checking if there are any errors in the browser console that might provide more clues
  2. Looking for any conditional statements in your theme files related to the header visibility
  3. Verifying that the header section in sections/header.liquid contains the expected content and hasn't been modified unexpectedly

 

If these suggestions don't resolve the issue, it might be worth temporarily enabling the announcement bar again to see if that restores the header section in the customization menu, which would confirm that the two are linked in some way.

 

If you still can't resolve the issue, feel free to DM or email your collaborator code and they'll fix it for you.

 

Shubham | Untechnickle

Helping for free: hello@untechnickle.com


Don't forget to say thanks, it'll make my day - just send me an email! 


Get Revize for Free | Let your shoppers edit orders post-purchase | Get Zero Support Tickets | #1 Order Editing + Upsell App

KPT
Tourist
7 0 3

Hi,

 

Thanks for the feedback. So there's no way for me to access the Announcement Bar again as that was part of the Header section in the customization section which is no longer available unfortunately. (we've turn on/off announcement bar many previous to this without issues. I think this may have coincided with the shift of the navigation to the content section but not fully sure)

 

The header.liquid file has been untouched vs the original theme file as well so its weird how this currently broken. 

 

Header 2025-03-22 155159.png

 

Thanks,

Kevin

KPT
Tourist
7 0 3

We do have 1 warning: "Attempting to close HtmlElement 'div2' before HtmlElement 'body' was closed"

 

Here's that section below however I see this comment throughout various including my footer.liquid which is not experiencing any issues at the moment as far as I'm aware.

  <body class="{% if template == '404' %}error-404{% else %}{{ template | replace: '.', '-' | handle }}{% endif %}"
        data-money-format="{% if settings.show_multiple_currencies == true and settings.currency_format == 'money_with_currency_format' %}{{ shop.money_with_currency_format }}{% else %}{{ shop.money_format }}{% endif %}"
        data-shop-currency="{{ shop.currency }}"
        data-shop-url="{{ shop.url }}">

    {% section 'header' %}

    <div class="mega-menu-container">
      {% if settings.mega_menu_1 %}
        {% section 'mega-menu-1' %}
      {% endif %}

      {% if settings.mega_menu_2 %}
        {% section 'mega-menu-2' %}
      {% endif %}

      {% if settings.mega_menu_3 %}
        {% section 'mega-menu-3' %}
      {% endif %}

      {% if settings.mega_menu_4 %}
        {% section 'mega-menu-4' %}
      {% endif %}

      {% if settings.mega_menu_5 %}
        {% section 'mega-menu-5' %}
      {% endif %}

    </div>

    {% unless feature_image %}
      <div class="container main content">
    {% endunless %}

      {{ content_for_layout }}
    </div>

 

KPT
Tourist
7 0 3

I do have this in my theme.liquid code and the header.liquid has not been modified. Not sure what's going on here unfortunately.