Jump to content

Changing Colour of Logo on Homepage

Recommended Posts

Posted

Hello all.

I am currently using the Sonora Template which gives a nice banner image layered underneath the logo, so I have chosen a white logo.

However all other pages are white headers so the logo does not show.

How can i use a black logo and then invert or use a custom logo just on the homepage so that the logo it white on the homepage

Thanks.

  • Replies 3
  • Views 1.1k
  • Created
  • Last Reply
Posted

You can do this by adding code to the page code injection.  For Brine family templates like Sonora, you'd use 

<style>
.Header-branding-logo {
    -webkit-filter: invert(100%);
    filter: invert(100%);
  filter:progid:DXImageTransform.Microsoft.BasicImage(invert='1');
  }
</style>

You can follow exact steps in this post. It also covers Bedford family templates and inverting the navigation color as well. 

  • 2 weeks later...
Posted

Or if you want to put this code in once and have it work on all instances of pages where you don't use a banner image, you can use this tweak on the code from @christyprice

.Header:not(.Header--overlay) img.Header-branding-logo {
    -webkit-filter: invert(100%); 
    filter: invert(100%);
filter:progid:DXImageTransform.Microsoft.BasicImage(invert='1');
}

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.