How to remove an announcement bar from a specific collection page?

Having difficulties with editing the code to remove the announcement bar from one collection page. Here’s the code snippet for the announcement bar (snippet-promo-bar.liquid)

{% if section.settings.header--promo-bar--show-on != 'none' %}
  {% unless template != 'index' and section.settings.header--promo-bar--show-on == 'home' %}
    
      {% if section.settings.header--promo-bar--link.size > 0 %}
        
          {{ section.settings.header--promo-bar--text | escape }}
        
      {% else %}
        {{ section.settings.header--promo-bar--text | escape }}
      {% endif %}
      
    

  {% endunless %}
{% endif %}

and it’s in the header.liquid as just

{% include 'snippet-promo-bar' %}

Just need to figure how to remove the announcement bar from that one single collection page

@paolarod1

Hii,
can You Please Share Your Store URL

Hi,

Please share your store URL and if your store is password protected then also provide password too.

Thank you.

Never mind, I got it fixed. All i did was add and ‘and’ statement in the if statement + collection.title != ‘name of collection here’ as so:

{% if section.settings.header--promo-bar--show-on != 'none' and collection.title != 'NAME OF COLLECTION HERE'%}