Hi!
I used the code above to fix the same issue: I want the header logo white (inverted) on homepage, and to stay black (original) on the rest. And it worked! But, I'm using an overlay mobile menu for desktop as well, and the background of the overlay menu is white -> hence on that, I'd love to also have the logo black. Is there a way to do this?