How to change logo color on home page versus other pages?

How to change logo color on home page versus other pages?

Fabian_weldon
Pathfinder
142 0 28

I want to have my logo be one colour on the home page and a different colour on all other pages. I am using the origin them - many thanks in advance.

Replies 3 (3)

romartiny
Shopify Partner
34 8 8

Hi. You can use CSS to change the color of your logo.
This style is for your logo that is on the page.

.home-page .logo {
color: blue;
}


This style to all other pages.

body:not(.home-page) .logo {
color: red;
}

 

Romartiny | Software Engineer
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution
dealersco
Visitor
2 0 0

you can help me? my logo is png transparent and dont change color with these css

dealersco
Visitor
2 0 0

i use dawn theme