Transparant header only shown on home page

Topic summary

A user wants to display a transparent header exclusively on their homepage while using a standard header on all other pages of their Shopify store.

Solution Provided:

  • Add conditional Liquid code to the theme.liquid file, placed above the </body> tag
  • The code uses {% if template.name != "index" %} to apply different styling based on page type
  • Implementation successfully resolved the transparent header issue

Follow-up Question:
The original poster now asks how to customize the non-homepage header colors—specifically requesting a black header with white text and icons. This secondary question remains unanswered.

Status: Initial problem solved; color customization request pending response.

Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

i have a transparant header, but i only want this transparant header to be shown at the home page and not at the other pages. can someone please help me

1 Like

Hey @coutureselectio

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

Best Regards,
Moeed

Hey Moeed,

My store url is coutureselection.com

the password is “coutureselection”

thank you in advance!

Hey @coutureselectio

On your website, I don’t see the option to add the password.

Best Regards,
Moeed

Hey Moeed,

I got the password off, so you can check it now!

Kind regards

1 Like

Hey @coutureselectio

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag

{% if template.name != "index" %} 

{% endif %}

RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

Hey Moeed,

Thank you, it worked! Do you maybe know how i can change the colloring now

kind regards

Hey Moeed,

Thank you, it worked! Do you maybe know how i can change the colloring now to black header with white text and icons? Thank you in advance!

Kind regards