Jump to content

How do I keep my site logo white over banner images, but black on any pages without?

Recommended Posts

I see similar Qs have been asked a few times, but either the solutions don't work for me or they've not been responded to, and I'd LOVE some help!

The majority of my site pages include banner images with white logos (https://theimperfectlife.co/), but my blog pages and privacy policy do not (https://theimperfectlife.co/playbook).

I have a black switch-out logo uploaded to my files, but I'm just not sure what code will pull it to the white pages? Any ideas? The navigation itself seems to do this automatically though? :/

Link to comment
  • Replies 4
  • Views 633
  • Created
  • Last Reply

@kerrylyons Add this CSS to Home > Design > Custom CSS


/* Black Logo on Entire Site */
.Header-branding-logo {
   -webkit-filter: invert(1);
   filter: invert(1);
}
/* Keep White Logo on Home Page */
.homepage .Header-branding-logo {
   -webkit-filter: invert(0);
   filter: invert(0);
}



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

I was v.excited that this worked, then I'm afraid I spoke too soon @tuanphan :/ I don't just need the white logo on the homepage, but on all inner pages with banner images too (like the homepage). I don't suppose you know of any super-clever way to enforce that do you? 0:)

Link to comment

I was v.excited that this worked, then I'm afraid I spoke too soon @tuanphan :/ I don't just need the white logo on the homepage, but on all inner pages with banner images too (like the homepage). I don't suppose you know of any super-clever way to enforce that do you? 0:)

Link to comment

@kerrylyons Each page have different ID. You can use this code to change logo color (just an example). Replace body#....410 with Page ID.

body#...410 is Playbook ID.


body#collection-58008ab4e58c6267bfeab410  .Header-branding-logo {
    -webkit-filter: invert(1);
    filter: invert(1);
}

See how to find Page ID. https://beaverhero.com/squarespace-how-to/#HowtoFindPageID

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

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.