Hide announcement bar and header for specific page only

JustinWolfson
Visitor
1 0 0

I want to hide the announcement bar and header for a specific page only. It keeps hiding it on my entire website which I don't want.

 

https://mindwav.audio/

 

 

Reply 1 (1)

SomeUsernameHe
Shopify Partner
455 49 83

You can use some conditional liquid like this:

{% unless template == 'page.YOUR_SPECIFIC_PAGE_HANDLE' %}
  <!-- Code for Announcement Bar -->
{% endunless %}

{% unless template == 'page.YOUR_SPECIFIC_PAGE_HANDLE' %}
  <!-- Code for Header -->
{% endunless %}
Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee