Shopify themes, liquid, logos, and UX
Hi there,
I am looking for a way to hide the announcement bar as well as the cart on my Shopify homepage. Ideally, I would want both to only appear on the product page.
I'm using Pipeline theme.
Thank you!
Solved! Go to the solution
This is an accepted solution.
Hey @SamShuter
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
a.navlink.navlink--cart {
display: none !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hey @SamShuter
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
Thank you!
I figured out how to hide the announcement bar, now I just need to hide the cart.
my URL is: https://samarashuter.shop/
This is an accepted solution.
Hey @SamShuter
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
a.navlink.navlink--cart {
display: none !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Amazing, thank you!
Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
Hey Moeed,
How do I hide the header announcement bar when I'm in cart.
I use the Dawn Theme.
Thanks in advance!
Thank you!
I figured out how to hide the announcement bar, now I just need to hide the cart.
my URL is: https://samarashuter.shop/
Hi @SamShuter , go to theme.liquid and add the following code before the </body> tag :
{% if template == "index" %}
<style>
a.navlink.navlink--cart {
display: none !important;
}
</style>
{% endif %}
This will hide the cart only on homepage.
This works perfectly, thank you!
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024