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
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:
theme.liquid file</body> tag that targets the homepage template{% if template == 'index' %} to apply display: none styling specifically to the footer newsletter group on the homepage onlyThe solution was marked as accepted, indicating it successfully resolved the issue.
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
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
{% if template == ‘index’ %}
{% endif %}
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.