Heading 1 missing on page

Hello everyone,

When I did site audit I get this error < Heading Tags: Heading 1 missing on page > I don’t have enough coding experience but I tried to fix it but it is still same error, Please how can I do that ?!

URL: https://e-stylish.ae/

Hi @ashraf-sl ,

Please send me the code of header.liquid file, I will check and add it for you

1 Like

Hello @ashraf-sl , I have checked your home page elements. On the home page, there is no “

” tag found when I checked. Please put a header with one “

” tag in your slider or some main section. Then please check if an audit is passed or not. You have to put a compulsory “

” if you use some other tags of the headings like “h2, h3…h6”.

If I helped you then, don’t forget to Like it and Mark it as a Solution!

Best Regards,
Darshan Prajapati

1 Like

Thank you for your assist
What I did? I added custom liquid section to main page. to fix the issue temporary right now.

text

Hi @ashraf-sl ,

You can refer https://github.com/Shopify/dawn/blob/main/sections/header.liquid

You can refer to the following code: https://prnt.sc/X1GJMAln_DaW

Hello Namphan, I have the same issue. I am using Stiletto as theme template.
Can you please adjust my code so that i get H1 tags ? As of now, I can only create H2,h3,h4,h5,h6. Thank you! Our shop is maisongiulia.myshopify.com

Hi @maisongiulia ,

I checked and your home page already includes the h1 tag, did you add it?

Hi Namphan! Thanks so much for your response. Indeed, in the code “Savour the Mediterranean sprit-free” is H1 on the home page, but in my shopify tool, it shows h2-h6, without any of them clicked.

Which takes me to the issue that on other pages the heading are selected as H2, because H1 option is not available.

https://maison-giulia.com/pages/founders-note

https://maison-giulia.com/pages/our-values

https://maison-giulia.com/pages/our-terroir

Hi @maisongiulia ,

Please send me the code of theme.liquid file, I will check and guide it for you

here you go! Thanks so much Namphan


  
    
    
    
    
    {% render 'meta-description' %}

    
    

    {%- if settings.favicon != blank -%}
      
    {%- endif -%}

    {%- capture seo_title -%}
      {%- if request.page_type == 'search' and search.performed == true -%}
        {{ 'search.heading' | t: count: search.results_count }}:
        {{ 'search.results_with_count' | t: terms: search.terms, count: search.results_count }}
      {%- else -%}
        {{ page_title }}
      {%- endif -%}
      {%- if current_tags -%}
        {%- assign meta_tags = current_tags | join: ', ' -%}
        – {{ 'general.meta.tags' | t: tags: meta_tags -}}
      {%- endif -%}
      {%- if current_page != 1 -%}
        – {{ 'general.meta.page' | t: page: current_page }}
      {%- endif -%}
      {%- assign escaped_page_title = page_title | escape -%}
      {%- unless escaped_page_title contains shop.name -%}
        – {{ shop.name }}
      {%- endunless -%}
    {%- endcapture -%}
    

    {% render 'social-meta-tags' %}

    {% render 'theme-setup' %}
    {% render 'theme-setting-vars' %}
    {%- render 'theme-globals' -%}

    {{ content_for_header }}
  

  
    
      {% if settings.enable_page_transitions %}
        {% render 'page-transition-overlay' %}
      {% endif %}

      

      

      {% sections 'header-group' %}
      {% sections 'overlay-group' %}

      {%- if settings.enable_quick_search -%}
        {% render 'quick-search' %}
      {%- endif -%}

      
        

      

      

      {% sections 'footer-group' %}

      {% render 'store-availability-drawer' %}
      {% render 'quick-view-modal' %}
      {% render 'modal' %}
      {% render 'back-to-top' %}
    

    {{ '//www.youtube.com/iframe_api' | script_tag }}
    {{ '//cdn.shopify.com/shopifycloud/shopify-plyr/v1.0/shopify-plyr.css' | stylesheet_tag }}
  
  
  

Hi @maisongiulia ,

Please change all code:


  
    
    
    
    
    {% render 'meta-description' %}

    
    

    {%- if settings.favicon != blank -%}
      
    {%- endif -%}

    {%- capture seo_title -%}
      {%- if request.page_type == 'search' and search.performed == true -%}
        {{ 'search.heading' | t: count: search.results_count }}:
        {{ 'search.results_with_count' | t: terms: search.terms, count: search.results_count }}
      {%- else -%}
        {{ page_title }}
      {%- endif -%}
      {%- if current_tags -%}
        {%- assign meta_tags = current_tags | join: ', ' -%}
        – {{ 'general.meta.tags' | t: tags: meta_tags -}}
      {%- endif -%}
      {%- if current_page != 1 -%}
        – {{ 'general.meta.page' | t: page: current_page }}
      {%- endif -%}
      {%- assign escaped_page_title = page_title | escape -%}
      {%- unless escaped_page_title contains shop.name -%}
        – {{ shop.name }}
      {%- endunless -%}
    {%- endcapture -%}
    

    {% render 'social-meta-tags' %}

    {% render 'theme-setup' %}
    {% render 'theme-setting-vars' %}
    {%- render 'theme-globals' -%}

    {{ content_for_header }}
  

  
    {%- if request.page_type == 'page' -%}
      # {{ page.title }}
    {%- endif -%}
    
      {% if settings.enable_page_transitions %}
        {% render 'page-transition-overlay' %}
      {% endif %}

      

      

      {% sections 'header-group' %}
      {% sections 'overlay-group' %}

      {%- if settings.enable_quick_search -%}
        {% render 'quick-search' %}
      {%- endif -%}

      
        

      

      

      {% sections 'footer-group' %}

      {% render 'store-availability-drawer' %}
      {% render 'quick-view-modal' %}
      {% render 'modal' %}
      {% render 'back-to-top' %}
    

    {{ '//www.youtube.com/iframe_api' | script_tag }}
    {{ '//cdn.shopify.com/shopifycloud/shopify-plyr/v1.0/shopify-plyr.css' | stylesheet_tag }}
  
  
  

Thank you Namphan. Does it mean that every time i put a H2, the SEO reads it as H1?

I also found a way to put H1 through choosing option “Text”. Do you suggest I use this for our titles or should I go with section “Heading” and choose H2?

Hi @maisongiulia ,

I have helped you add default H1 for all pages according to page title.

About the screenshot, you can try to change it and send me the link, I will check it

Hi Namphan, I now have this weird text showing up instead of H2 in the options menu of the title. Would you agree that instead of using the Title section, I use the text section and use H1 for titles?

Hi @maisongiulia ,

Looks like this should work, can you try it?