Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
kerrylyons

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

Question

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? :/

Edited by kerrylyons
Initial Revision

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0

@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);
}




Send me a message if you have any questions (free 10 minutes).

Don't send to forum message. I will check all questions via the link above

Share this post


Link to post
  • 0

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:)

Share this post


Link to post
  • 0

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:)

Edited by kerrylyons
Initial Revision

Share this post


Link to post
  • 0

@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


Send me a message if you have any questions (free 10 minutes).

Don't send to forum message. I will check all questions via the link above

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...