Jump to content

Invert a header logo image inside Portfolio Collection's Project-Pages (ver 7.1)

Recommended Posts

Site URL: https://www.cryssycheung.com/

Hello!

I was wondering if it was possible to invert my Header's Logo Image inside of individual project-pages within the portfolio collection.

My default header logo image is a PNG that is black with transparency. 

Main site URL : https://www.cryssycheung.com/

Here is a link with the first section with a dark background graphic, and the default black logo image is getting lost. I'd love to have the logo image inverted to white for this instance: https://www.cryssycheung.com/design/comedy-central

I found this CSS in another form and inputted it into the DESIGN > CUSTOM CSS, but it doesn't work. The collection ID in the code below is the id I took from the View page Source <body> tag. 
 

#collection-5ffa3958a6aa4755bbc2260d .header-title-logo img {
    -webkit-filter: invert(100%);
   filter: invert(1);
}

Thanks so much for taking a look! 
Cryssy

Link to comment
53 minutes ago, cryssy said:

Site URL: https://www.cryssycheung.com/

Hello!

I was wondering if it was possible to invert my Header's Logo Image inside of individual project-pages within the portfolio collection.

My default header logo image is a PNG that is black with transparency. 

Main site URL : https://www.cryssycheung.com/

Here is a link with the first section with a dark background graphic, and the default black logo image is getting lost. I'd love to have the logo image inverted to white for this instance: https://www.cryssycheung.com/design/comedy-central

I found this CSS in another form and inputted it into the DESIGN > CUSTOM CSS, but it doesn't work. The collection ID in the code below is the id I took from the View page Source <body> tag. 
 


#collection-5ffa3958a6aa4755bbc2260d .header-title-logo img {
    -webkit-filter: invert(100%);
   filter: invert(1);
}

Thanks so much for taking a look! 
Cryssy

The correct collection id is

#item-5ffa3958a6aa4755bbc2260d .header-title-logo img {
    -webkit-filter: invert(100%);
   filter: invert(1);
}

image.thumb.png.c7b0138c4aa8ed3dfacb88b0a9b68ca1.png

Use this to get the id of the item

Chrome Web Store - Extensions (google.com)

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment
  • 11 months later...
On 12/22/2021 at 4:55 AM, kakers said:

I tried this and it didn't work. is there a way to

  • have the light logo show on dark pages? and
  • dark logo show on light pages?

Add this code to Page Header (page where you want to invert logo). If the code doesn't work, please share link to your site, we can check easier

<style>
  header#header img {
    -webkit-filter: invert(100%);
   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

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.