Shopify themes, liquid, logos, and UX
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.
Hello @ads
Please share your store URL and password so I can check and update you.
Hello @ads
.newsletter.center {
display: none;
}
hi, this didn't work
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!
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
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!
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.
In today’s interview, we sat down with @BSS-TekLabs to discuss practical strategies for...
By JasonH Nov 13, 2024The year-end shopping spree is around the corner! Is your online store ready for the ...
By JasonH Nov 10, 2024We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024