Jump to content

Inverting Site Logo

Go to solution Solved by Ziggy,

Recommended Posts

Hi guys!
Just wondering if anyone knows how to change the logo on different pages?

I've got a white logo at the moment, which works for all the other pages, except the Product pages. I don't want to change the logo to a white box behind a black logo, it would ruin the look of the site!

Does anyone know? Thank you!

My client's website is https://www.raindropon26.com.au/

Password: raindrop2023

Edited by emersonfielkecreative
update
Link to comment
  • Solution

You can use CSS to invert the logo on certain pages.

Add this to the page header code injection on the pages you want it reversed:

<style>
  .header-title-logo img {filter: invert(1);}
</style>

Or use this CSS with collection IDs:

#item-63bba57656086f6c6f308fab {
  .header-title-logo img {
    filter: invert(1);
  }
}

The CSS works for this page: https://www.raindropon26.com.au/shop/p/gift-card

You can find the page collection IDs like this:

https://squarefortytwo.com/squarespace-guides/find-an-id-in-squarespace-71

Let me know if that works for you, and give me a thumbs up here if you can, thanks!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment

Oh my gosh you are amazing, thank you so much!!

I tried with the mobile view however, and that didn't seem to work. Is there another code for that?

This and variations of it aren't quite right:

/* Gift Card logo */
#item-63bba57656086f6c6f308fab {
  .header-title-logo img {
    filter: invert(1);
  }
  @media screen and (max-width: 767px) {.header-title-logo img {
    filter: invert(1);
  }
} }

What can be updated for that to work?

Thank you! 

Link to comment

If you want to do both desktop and mobile on the same page use these instead:

Add this to the page header code injection on the pages you want it reversed:

<style>
  .header-title-logo img, .header .header-title--use-mobile-logo .header-mobile-logo img {filter: invert(1);}
</style>

Or use this CSS with collection IDs:

#item-63bba57656086f6c6f308fab {
  .header-title-logo img, .header .header-title--use-mobile-logo .header-mobile-logo img {
    filter: invert(1);
  }
}

Let me know if that works.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

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.