jesspetro
-
Posts
3 -
Joined
-
Last visited
Content Type
Forums
Gallery
Blogs
Events
Store
Downloads
Profiles
Posts posted by jesspetro
-
-
I used the same code and it did achieve changing the logo on my product details page, but it still also changed it on the shop page. Any ideas?
Make logo on shop page white and logo on product details page black; site default is black logo
in Fonts, colors and images
Posted
I have a website, wareagleforge.com.
The default logo for the website is a black png. On several pages with dark headers, I've used code to make the logo white. The shop page is one example of a page with a dark background so I've used the code on that specific page to make the logo white. But it turns out that the product details pages inherit that change. My product details pages do not have a dark background for the header so you cannot see the white logo on the white background. I'd like to ONLY use the black logo on the product details page and NOT on the shop page. I've tried every example I could find online and nothing seems to achieve what I'm trying to do.
Any ideas?
This is the code I'm using on the shop page under settings>advanced>page header code injection to make the logo white on the dark header background.
<style>
.header-title-logo img {
visibility: hidden;
}
.header-title-logo a {
background-image: url(https://images.squarespace-cdn.com/content/65c65e0fea861123a7439f1d/e8435e52-c247-4757-8e74-aa4a3cc8053f/logo+with+name+larger+white.png);
background-size: contain;
background-repeat: no-repeat;
background-position: center center;
}
</style>