Different Headers for specific collections & product pasges

Hi, I am using the maestro theme Is it possible for I can create 2 headers, One for specific collections and the other for another Collection?

E.g I have leather and beauty products so I was thinking if it’s possible for beauty page visitors can not see other headers and they can only see their menus and leather products visitors can only see their menus,s not the beauty ones.

I tried to create a template of the collection page and product page so I can assign that template to those beauty products but I can’t find any option to assign a menu specifically for specific pages.

I tried the below code in the header.liquid but got error
Liquid error (sections/header.liquid line 196): Could not find asset snippets/menu-default.liquid

{% if template == 'beauty-collection' or template == 'beauty-product' %}
    {% include 'beauty-menu' %}
{% else %}
    {% include 'menu-default' %}
{% endif %}

Any ideas?

Thanks

add this code in theme.liquid and write your relevant collection handle

{% if collection.handle contains 'beauty-collection' or  collection.handle contains 'beauty-product' %}
    {% include 'beauty-menu' %}
{% else %}
    {% include 'menu-default' %}
{% endif %}

here the collections/shop (shop) is handle you need to put that

Screenshot from 2023-01-30 17-39-46.png

Hi Omar, I have the same issue, but using the Prestige theme, could you explain me where should I add this code exactly within the theme.liquid code?

is it where I have this code?

{% section ‘header’ %}

thank you very much