Jump to content

Dark and light version of logo

Recommended Posts

Site URL: https://grapefruit-maroon-t44d.squarespace.com/

Hey team, 

I am wondering if anyone has an easy solution to having a dark and light version of the logo that works with the colour settings in the nav?

For example the logo looks great in white on a banner image but when I have a page that doesn't have a banner image the logo is lost on the white background. It's easy to set up the nav items to behave correctly on different pages but the logo seems a bit trickier. Surely Squarespace haven't presumed people are just going to bypass logos and write the business name in a font so it works?!

I am using 7.1 

 

Thanks in advance

Link to comment
On 2/25/2020 at 5:21 AM, Tom5362 said:

Hey @tuanphan password is 54321

Cheers

To change logo to black on one page, add this to Page Settings > Advanced > Header

<style>
  .header-title-logo img {
    filter: 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
  • 2 months later...
3 minutes ago, djm said:

https://thermodynamx.squarespace.com

I just noticed: the logo on mobile changes, depending on what page I’m on (I’ve already used the »invert« code on the pages »Home«, »Angebot« and »News«. So I would need a separate »invert« command for the mobile menu.

I also cannot find, where I can change the mobile menu background colour...?

@media screen and (max-width:767px) {
.header--menu-open .header-title-logo img {
    filter: invert(0);
}
.header-menu-bg.theme-bg--primary {
    background: red !important;
}
}

 

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
5 hours ago, djm said:

Thanks @tuanphan. This works perfectly with the logo.

The background colour works too. But now I need to change the font colour....

Why is there no mobile options for mobile design in 7.1? I miss that.

 

.header--menu-open nav.header-menu-nav-list * {
    color: green !important;
}

 

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
20 hours ago, tuanphan said:

.header--menu-open nav.header-menu-nav-list * { color: green !important; }

Nice. Thanks so much.

Noticing 2 last things here:

  • the X for closing the menu is dark
  • the Button is not displaying in my usual button style (capitals).

Any code for this? @tuanphan

Screenshot 2020-04-29 at 17.34.12.png

Edited by djm
Link to comment
  • 9 months later...
  • 2 years later...

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.