Header Menu Text Colour Changes

Header Menu Text Colour Changes

HYBRID
Excursionist
26 1 5

Hi

 

I have included two screenshots to better describe my issue. On my home page, the header menu text is white, as is my logo. This is fine as it contrasts with the background and can be seen. If you click onto any other page, the background chages to white (the standard colour theme), the header menu text changes to black but my logo stays as white and can't be seen.

 

Is there a way of keeping my home page logo white (as it is now) but chaging it on all other "white" pages to black so it matches the other text and can be seen.

 

Thanks in advance

 

Screenshot 2025-03-25 at 10.27.50.pngScreenshot 2025-03-25 at 10.28.00.png

Replies 8 (8)

Manoj_j
Shopify Partner
86 0 4

Hi @HYBRID ,

Yes, you can achieve this by using CSS and liquid custom code in your Shopify theme. you can keep your logo white in home page and make it black on other pages. share your store url and  password ( if password protected ).
Thanks 
Manoj

- Need a Shopify Specialist ?
- Email Me | For quick response message me
- Custom Design | Advanced Coding | Store Modifications
- Digital Marketing | SEO Expert
HYBRID
Excursionist
26 1 5

Thanks

Could you please explain how to do this without the need for me giving the website details? I was scammed by a developer on here recently and I'm afraid my trust has been affected

Manoj_j
Shopify Partner
86 0 4

Hi @HYBRID ,

you can report that scammer .  
report here  https://help.shopify.com/

- Need a Shopify Specialist ?
- Email Me | For quick response message me
- Custom Design | Advanced Coding | Store Modifications
- Digital Marketing | SEO Expert
HYBRID
Excursionist
26 1 5

Thank you, I'll do this. I know they are still active on here so hopefully something is done

HYBRID
Excursionist
26 1 5

can you help with this please?

Sivadarshan
Shopify Partner
314 2 61

@HYBRID, Please follow these steps.

 

Step 1. Go to Online Store -> Theme -> Edit code
Step 2. Open your theme.liquid theme file
Step 3. Paste below code before </body> 
Step 4: Upload the logo on content > files > upload logo file

Step 5: Copy the logo link and replace the URL completely

{% if template != "index" %}
  <style>
   .header__heading-logo{
    visibility: hidden;
}

a.header__heading-link.link.link--text.focus-inset {
    background: url(https://cdn.shopify.com/s/files/1/0648/2621/2600/files/IMG_4386.png?v=1654756530);
    background-size: 160px;
    background-repeat: no-repeat;
    background-position: center;
}
  </style>
{% endif %}

 

If this code works don't forget to like and accept the answer

HYBRID
Excursionist
26 1 5

Thank you

Just to confirm, this will change the logo on the pages other than the Home Screen? The home screen will remain the same (which I would like)

HYBRID
Excursionist
26 1 5

Unfortunately, that didn't work. Here's the code and where I've copied it

This is line 122 - 144 (if that matters)

 

{% comment %} Image markup used when building product grid item via JS {% endcomment %}
<template id="predictiveImageMarkup">
<image-element>
<img width height src loading="lazy" sizes="(min-width: 769px) 100px, 60px">
</image-element>
</template>
{% if template != "index" %}
<style>
.header__heading-logo{
visibility: hidden;
}

a.header__heading-link.link.link--text.focus-inset {
background: url(https://cdn.shopify.com/s/files/1/0832/7505/5449/files/Black_Logo_Transparent_Background.png?v=17429...);
background-size: 160px;
background-repeat: no-repeat;
background-position: center;
}
</style>
{% endif %}
</body>
</html>