How to remove email signup from different pages

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 %}