Re: Removing the header on home page only

How can I remove the header on my home page only?

TammyD29
New Member
4 0 0

I need to remove the header from my home page only as this is a website you need an account to access. I do want the cart, logout, etc. from my header bar on all other pages.

Replies 4 (4)

Dbuglabpvtltd
Shopify Partner
705 75 117

Hi @TammyD29 

Use this code .

{% if template != 'index' %}
ADD HEADER CODE HERE ....
{% endif %}

 

banned
TammyD29
New Member
4 0 0

Where does this go?

TammyD29
New Member
4 0 0

Where does this code go?

AvadaCommerce
Shopify Partner
3879 839 985

Hi @TammyD29 

Can I have your theme name? Or your shop URL and password (if any)?

banned