Jump to content

Logo inversion code help?

Go to solution Solved by tuanphan,

Recommended Posts

Hello,
I've used this code to invert my black logo to white on my shop title page which has a dark photo background:
<style>
.header-title-logo img {
    -webkit-filter: invert(100%);
   filter: invert(100%);
  filter:progid:DXImageTransform.Microsoft.BasicImage(invert=’1′);
  }
</style>

Except that it applies this to my product pages which have a light background and I want the black logo instead. How can I change this?

Link to comment
  • Replies 2
  • Views 343
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

Change your code to this to apply it to Shop Page only

<style>
body.view-list .header-title-logo img {
    -webkit-filter: invert(100%);
   filter: invert(100%);
  filter:progid:DXImageTransform.Microsoft.BasicImage(invert=’1′);
  }
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.