Hide navigation menu from and log in button from certain collections - Brooklyn

Highlighted
New Member
2 0 0

Hello, I want to hide the navigation menu and log in buttons on certain collections and those collections product pages. I have 5 products in this collection in which I want to hide the navbar and log in buttons, not just in the collection but when I click on those collections products. I only want people to see the cart button when they're looking through this one collection. I've found this code for the Minimal theme

{% if collection.handle == 'VIP-Holiday-Shopping-Experience' %}
<style>
.site-nav {display: none;}
</style>
{% endif %}

 

but the place to which this person was directed to place the code is non existent in the Brooklyn theme. Also the actual collection name is "VIP Holiday Shopping Experience" am I supposed to put dashes instead of spaces in the code?

 

Any help would be amazing! Thank you!

0 Likes
Highlighted
New Member
2 0 0

Bump

0 Likes