How to remove email signup from different pages

How to remove email signup from different pages

ads
Excursionist
27 0 12

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.

Screenshot 2024-10-15 at 16.12.28.png

Replies 8 (8)

devcoders
Shopify Partner
427 65 102

Hello @ads 

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

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com.
If my assistance was helpful, please consider liking and accepting the solution. Thank you!
ads
Excursionist
27 0 12

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

password is mechaw

 

devcoders
Shopify Partner
427 65 102

Hello @ads 

 

 

  • 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;
}

 

 

devcoders_0-1729012425323.png

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com.
If my assistance was helpful, please consider liking and accepting the solution. Thank you!
ads
Excursionist
27 0 12

hi, this didn't work

Made4uo-Ribe
Shopify Partner
8882 2124 2610

Hi @ads 

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 </body> tag and paste the code below before the tag. 

 

<style>
{% if template.name != 'product' and template.name != 'contact' %}
    .newsletter.center {
        display: none;
    }
{% endif %}
</style>

 

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! 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
ads
Excursionist
27 0 12

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

 

Made4uo-Ribe
Shopify Partner
8882 2124 2610

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' %}
<style>
   .newsletter.center {
        display: none;
    }
</style>
{% 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!

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

Dan-From-Ryviu
Shopify Partner
10154 2018 2081

Hi @ads 

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

{% if template == 'index' %}
{% else %}
<style>
    #shopify-section-sections--23857277436170__newsletter_fNCgD4 { display: none; }
</style>
{% endif %}

- Helpful? Like and Accept solution! OR Buy me coffee ❤️
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.