remove footer page main page

Topic summary

A user wants to hide the newsletter subscription section from their footer, but only on the homepage while keeping it visible on other pages. They are using the Dawn theme.

Solution provided:

  • Navigate to Online Store → Theme → Edit code
  • Open the theme.liquid file
  • Add conditional CSS code before the </body> tag that targets the homepage template
  • The code uses {% if template == 'index' %} to apply display: none styling specifically to the footer newsletter group on the homepage only

The solution was marked as accepted, indicating it successfully resolved the issue.

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

Hello,
I’ve added the option of subscribing to the newletter to my footer page, but I’d like it not to appear on my main page.

Here is the link to my site: https://albe.online/collections/all
And I use the dawn theme

Thanks in advance

Hello @albestudios

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid
    {% if template == ‘index’ %}

.shopify-section-group-footer-group .newsletter { display: none !important; }

{% endif %}
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.