how to make email signup on homepage only

how to make email signup on homepage only

BB100
New Member
11 0 0

i noticed that my email banner at the bottom of my screen is on every page. how can i only have it showing on homepage?

 

website: thebrewerbuddy.com

Replies 9 (9)

namphan
Shopify Partner
2261 295 331

Hi @BB100,

Please go to newsletter.liquid file and paste this at the bottom of the file:

{% unless request.page_type == 'index' %}
  <style>
    .newsletter {
      display: none;
    }
  </style>
{% endunless %}
Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
BB100
New Member
11 0 0
Thank you!! it worked
namphan
Shopify Partner
2261 295 331

Hi @BB100,

If you have any questions, you can contact me directly.
Happy to help you 😊

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
Naazare
Tourist
4 0 1

Hi Namphan, i have the same issue. i am using the expanse them in shopify and want my newsletter page to be visible on the homepage only. the code you provided did not work for my theme

namphan
Shopify Partner
2261 295 331

Hi @Naazare,

Please send the website link, I will check it for you

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
Naazare
Tourist
4 0 1
namphan
Shopify Partner
2261 295 331

Hi @Naazare,

Please change code:

{% unless request.page_type == 'index' %}
  <style>
    .index-section.newsletter-container {
      display: none;
    }
  </style>
{% endunless %}
Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
Naazare
Tourist
4 0 1

Thank you it worked

namphan
Shopify Partner
2261 295 331

Hi @Naazare,

You're welcome and happy to help

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com