I’m using the Craft Theme. From an SEO audit, it shows my Home Page has no H1 tag. All other pages are good and pick up the Title as the H1 tag. However, for the Home Page, it appears the H1 is coming from the header and logo:
<img srcset=“//cdn.shopify.com/s/files/1/0631/0841/5722/files/Cremation_Urn_logo_medium_8b96486b-b2ed-4756-b31f-9654105146c9_220x.png?v=1645967099 1x, //cdn.shopify.com/s/files/1/0631/0841/5722/files/Cremation_Urn_logo_medium_8b96486b-b2ed-4756-b31f-9654105146c9_220x@2x.png?v=1645967099 2x” |
src=“//cdn.shopify.com/s/files/1/0631/0841/5722/files/Cremation_Urn_logo_medium_8b96486b-b2ed-4756-b31f-9654105146c9_220x.png?v=1645967099” | loading=“lazy” | class=“header__heading-logo” | width=“5333” | height=“3333” | alt=“Cremation urns for ashes logo” | > | Home | Products |
---|
This is driven in my header.liquid code:
{%- if request.page_type == ‘index’ -%}
{%- endif -%}
{%- if section.settings.logo != blank -%}
{%- assign image_size = section.settings.logo_width | append: 'x' -%}
{%- else -%}
{{ shop.name }}
{%- endif -%}
{%- if request.page_type == 'index' -%}
{%- endif -%}
The Title is correctly coming from the Shopify page editor, which is what should also be the H1 tag for the home page. So, how do I assign the H1 tag to the Page Title?