How to remove email signup from different pages

Topic summary

Email signup (newsletter) section shows on all pages; requester wants it visible only on the home page. Store URL and password were shared for reviewers to inspect.

  • First suggestion: add CSS in assets/base.css to hide .newsletter.center (display: none). This removes the signup everywhere, including the home page, which is not desired.

  • Second attempt: add code in theme.liquid before ; initial snippet was empty/unclear. Requester reported it either removed the home page signup or didn’t work. A follow-up proposed a Liquid conditional using template.name to exclude product and contact templates, but no concrete code wrapping the newsletter was provided.

  • Third suggestion: add a Liquid check after using {% if template == ‘index’ %} … {% else %} … {% endif %} to limit rendering to the home page. The snippet again lacked the actual markup/CSS to target the newsletter block.

Status: No confirmed solution. Next step is to wrap the newsletter section itself with a Liquid conditional (Shopify’s templating) to render only on the index page or exclude specific templates. Discussion remains open.

Summarized with AI on December 16. AI used: gpt-5.

I have an email signup at the bottom of my home page, but when i try to remove it from my other pages such as product pages and contact page, it also removes it from my home page which i dont want.

2 Likes

Hello @ads_18

Please share your store URL and password so I can check and update you.

https://05ab08-9f.myshopify.com/

password is mechaw

1 Like

Hello @ads_18

  • Go to Online Store, then Theme, and select Edit Code.
  • Search for assets/base.css.
  • Add the provided code at the end of the file.
.newsletter.center {
display: none;
}

Hi @ads_18

TRy this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”

  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.

  3. In the “theme. Liquid” file. Find the tag and paste the code below before the tag.


And Save.

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

hello, this worked however it also removed the email sign up on my main page which i dont want to do. I want to keep it on the home page but remove it off every other page

hi, this didn’t work

Can you try it again? I didnt include the homepage. Only propduct and contact. It;s dawn theme right?

{% if template.name != 'product' and template.name != 'contact' %}

{% endif %}

And save.

Sorry my mistake.

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

Hi @ads_18

You can do that by adding this code to theme.liquid file, after

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

{% endif %}