h1 tag for homepage

Topic summary

A user is attempting to modify the H1 tag on their Shopify homepage but encountered errors after making adjustments. Originally, the H1 was set to the logo’s alt text.

Current Issue:

  • Code now displays errors and doesn’t function properly
  • The user wants the H1 to display custom text instead of the logo alt text

Code Problems Visible:

  • The provided code snippet appears corrupted or reversed (text appears backwards/scrambled)
  • HTML structure shows broken tags and syntax errors
  • Conditional logic for template checking ({% if template == 'index' %}) is present but malformed

User’s Goal:

  • Replace the default H1 (logo alt text) with specific custom text
  • Fix the syntax errors in the current implementation

The user is seeking guidance on what went wrong in their code modifications and how to properly implement the desired H1 tag change while maintaining valid HTML/Liquid syntax.

Summarized with AI on November 6. AI used: claude-sonnet-4-5-20250929.

Hiim trying to change the h1 tag for my homepage, but after having made a few adjustments it still doesnt work and now shows as a error in my code. originally i think the h1 was set as the alt text of my logo. see below the code now, but can you please advise what ive done wrong in the code and how to rectify it so that the h1 tag is the text i have written:

class="site-logo" href="{{ routes.root_url }}"> {% if section.settings.logo %} {% assign logo_alt = section.settings.logo.alt %} {% if logo_alt == '' %} {% assign logo_alt = shop.name | strip %} {% endif %}

{% if template == ‘index’ %}

{% endif %} {% render 'rimg', img: section.settings.logo, class: 'site-logo-image', alt: logo_alt, size: logo_size, focal_point: section.settings.logo.presentation.focal_point, %} {% if template == 'index' %}

{% endif %} {% else %} {% if template == 'index' %}

Welcome to Infrared Heating Supplies - The UK's No.1 Supplier of Infrared Heating

{% else %} {{ shop.name }} {% endif %} {% endif %}