Shopify themes, liquid, logos, and UX
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
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 %}
Hi @BB100,
If you have any questions, you can contact me directly.
Happy to help you 😊
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
Hi @Naazare,
Please send the website link, I will check it for you
Hi @Naazare,
Please change code:
{% unless request.page_type == 'index' %}
<style>
.index-section.newsletter-container {
display: none;
}
</style>
{% endunless %}
Thank you it worked
Hi @Naazare,
You're welcome and happy to help
Find Global Growth Opportunities For Your Business with Shopify AcademyLearn how to exp...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025