change logo on all pages but homepage!

change logo on all pages but homepage!

smezstudios
Excursionist
36 0 6

Hi there my logo is white on my home page which I want, but as the background is white on all the other pages I want a black logo on these- can someone please help me with this! 

Replies 3 (3)

smezstudios
Excursionist
36 0 6

my website is www.smezstudios.com and password Robinson1

devcoders
Shopify Partner
227 40 55

Hi @smezstudios 

- Go to Online Store -> Theme -> Edit code.
- Find the file Layouts/theme.liquid and paste the code below at the bottom of the file."

 

{% if template.name == 'index' %}
<style>
.header__heading-link.link.link--text.focus-inset {
background: black;
}
</style>
{% endif%}

 

devcoders_0-1723727911603.png

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com.
If my assistance was helpful, please consider liking and accepting the solution. Thank you!
smezstudios
Excursionist
36 0 6

hi unfortunately that did not work at all and is not what im after. 

 

I want the logo to stay exactly the same on the homepage like so.

home.png

 

but on my other pages the logo to be black- as you can see right now it is not showing up. I think its because i have coded in a transparent header for the home pageother.png