Changer header on a specific page ONLY

Hi,
Can you help me with changing header on a specific page of the store please ?
When I try to hide it on the page, it disappears in the whole website.

Thank you for you help,
Ornella

Send me the page link that you want to hide header.

Hi @Ornie

Can you send me the link page that you want to hide the header please? Thank you

1 Like

HI, Here it is : https://troisforall.com/pages/black-friday-premium

1 Like

HI, Here it is : https://troisforall.com/pages/black-friday-premium

Please add this code to theme.liquid file, after in Online Store > Themes > Edit code

{% if page.id == 135970554198 %}

{% endif %}

Hi again,

You can follow the instruction here:

  1. Go to Shopify > theme > edit code.

  2. Navigate to theme.liquid file > add the code to above tag.

I hope it helps.

{% style %}
{% if page.id == 135970554198 %}
header { display: none !important; }
{% endif %}
{% endstyle %}

Thank you very much. It worked for header :slightly_smiling_face: Can I do the same to remove “announcement bar” ?

Thank you very much. It worked for header

Can I do the same to remove “announcement bar” ?

Hi, to remove the announcement bar, you can add this code to right below the code above. You can click enter to continue to add to below.

.announcement-bar {
    display: none;
}

Please update the code

{% if page.id == 135970554198 %}

{% endif %}