Liquid, JavaScript, themes, sales channels
Could someone pls show/explain how I can hide my logo, navigation menu, announcement bar and the search/cart icons from just ONE page on my website. I want this page to be very plain. It is a page that was created with a custom template.
Thank you so much in advance for helping! 🙂
Solved! Go to the solution
This is an accepted solution.
Hello There,
1. Go to Online Store->Theme->Edit code
2. Edit your layout/theme.liquid file. Right above the line that has </head>
{% if page.handle == 'enter the page handle' %}
<style>
.site-nav {display: none!important;}
</style>
{% endif %}
This is an accepted solution.
Hello There,
1. Go to Online Store->Theme->Edit code
2. Edit your layout/theme.liquid file. Right above the line that has </head>
{% if page.handle == 'enter the page handle' %}
<style>
.site-nav {display: none!important;}
</style>
{% endif %}
It worked!! I made a mistake initially. THANK YOU!!
It didn't turn off the logo, announcement bar and search/cart icons though. Is there an easy way to remove these from that one page as well? Thank you for helping...
I did this and it made my drawer menu disappear throughout my entire site when viewed on desktop only. the drawer menu is still present on mobile. How do I reverse this, I can't find the code!
tried this and it did not work, but not sure I'm putting in right page names. how do I find page names ? I want action bar on only home page and not on any other page.
Also how would I exclude the action bar on mobile display for home page and keep it on desk top and tablet? I still want it only on home page and not on any other page.
Hi there!
This worked perfectly! I changed .site-nav to .site-header and was able to remove the entire area (which is what we needed in our scenario.)
Do you know how to also remove the Announcement Bar? And also maybe the social media bar in the header as well?
Thank you again!
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024