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
1450 172 451

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
WhatsApp No: +91 8516919310 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
1450 172 451

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
WhatsApp No: +91 8516919310 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
10202 2422 3067

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an 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
10202 2422 3067

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

Dan-From-Ryviu
Shopify Partner
11708 2294 2476

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 & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.