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
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.liquidfile, 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.
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
Hey @coutureselectio
Follow these Steps:
-
Go to Online Store
-
Edit Code
-
Find theme.liquid file
-
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
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

