How do I make my logo change color on a transparent header in dawn theme?

Solved

How do I make my logo change color on a transparent header in dawn theme?

EastsideMelrose
Excursionist
29 0 11

I have two logos as you can see on the left of each picture. I want the "Logo Transparent" to change to the "Logo" when someone hovers over the header. The left image is the transparent header, the right image is the header when you hover on it.

 

Screenshot 2025-04-10 at 9.40.46 AM.pngScreenshot 2025-04-10 at 9.40.53 AM.png

 

URL: https://www.eastsidemelrose.com/

Password: opensesame

Accepted Solution (1)
tim
Shopify Partner
4304 493 1581

This is an accepted solution.

Interesting -- I did not try to save it 🙂 

Nothing wrong with the code, but if it does not work in "Custom CSS", just add it to the bottom of the assets/base.css...

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com

View solution in original post

Replies 6 (6)

tim
Shopify Partner
4304 493 1581

Here is the CSS rule to help with this:

header:hover .header__heading-logo {
  filter: invert(1);
}

When configuring your "Header" section, put this code into "Custom CSS" setting.

 

Screenshot 2025-04-11 at 12.23.48 AM.png

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
EastsideMelrose
Excursionist
29 0 11

Hey Tim, 

 

It works when I put it in the Custom CSS section, but it won't let me save the changes. Is there somewhere I can put it in the header.liquid section that would work?

tim
Shopify Partner
4304 493 1581

This is an accepted solution.

Interesting -- I did not try to save it 🙂 

Nothing wrong with the code, but if it does not work in "Custom CSS", just add it to the bottom of the assets/base.css...

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
EastsideMelrose
Excursionist
29 0 11

Works like a charm, thank you!

EastsideMelrose
Excursionist
29 0 11

Is there a way to make it where it only changes on the homepage and not every other page?

tim
Shopify Partner
4304 493 1581

Sure. One option is to remove the code from the assets/base.css and instead create a "Custom liquid" section on the home page and put it inside that section this way:

<style>
 header:hover .header__heading-logo {
   filter: invert(1);
 }
</style>

 

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com