MonicaW Posted September 29, 2022 Share Posted September 29, 2022 Hi, I have 7.1 portfolio pages with background banner images where the logo and nav need to change to white to be more visible. (Background banner seems to be automatically detected on other pages though, with the nav changing automatically to white?) Thanks to this forum, I've been able to target just the portfolio pages via javascript that adds a class to those portfolio pages. The nav color change seems to work, but the logo is not getting hidden or replaced. Not sure why. I've tried different code that I've found, but nothing seems to work for the logo. I don't think I can use 'inverse' since the client's logo is a bluish-grey. Portfolio collection page Portfolio page Appreciate any help and open to suggestions. Thank you! //Change Logo and Nav color// .twc-collection-type-portfolio { .header-title-logo img { visibility: hidden !important; } .header-title-logo a { background-image: url(https://static1.squarespace.com/static/62b8cab7cbbc6359efdfc5dd/t/63334cfc58a9522e8fa8f45b/1664306428278/ZH-Architects-logo-white-500.png); background-size: cover; background-repeat: no-repeat; background-position: center center; } .header-nav-item a { color: #FFF !important; } .header-nav-folder-content { background: #6A7284 !important; } } Link to comment
Beyondspace Posted September 29, 2022 Share Posted September 29, 2022 8 hours ago, MonicaW said: Hi, I have 7.1 portfolio pages with background banner images where the logo and nav need to change to white to be more visible. (Background banner seems to be automatically detected on other pages though, with the nav changing automatically to white?) Thanks to this forum, I've been able to target just the portfolio pages via javascript that adds a class to those portfolio pages. The nav color change seems to work, but the logo is not getting hidden or replaced. Not sure why. I've tried different code that I've found, but nothing seems to work for the logo. I don't think I can use 'inverse' since the client's logo is a bluish-grey. Portfolio collection page Portfolio page Appreciate any help and open to suggestions. Thank you! //Change Logo and Nav color// .twc-collection-type-portfolio { .header-title-logo img { visibility: hidden !important; } .header-title-logo a { background-image: url(https://static1.squarespace.com/static/62b8cab7cbbc6359efdfc5dd/t/63334cfc58a9522e8fa8f45b/1664306428278/ZH-Architects-logo-white-500.png); background-size: cover; background-repeat: no-repeat; background-position: center center; } .header-nav-item a { color: #FFF !important; } .header-nav-folder-content { background: #6A7284 !important; } } Does it look better? 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
Beyondspace Posted September 29, 2022 Share Posted September 29, 2022 I use this code for logo .header-title-logo img { filter: brightness(2); } Support me by pressing 👍 if this useful for you 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
MonicaW Posted September 29, 2022 Author Share Posted September 29, 2022 Thanks for the reply @bangank36, Yes, I want the logo white only on the portfolio pages, but am not sure where to add your code. 2 hours ago, bangank36 said: I use this code for logo .header-title-logo img { filter: brightness(2); } Support me by pressing 👍 if this useful for you Link to comment
Beyondspace Posted September 29, 2022 Share Posted September 29, 2022 1 hour ago, MonicaW said: Thanks for the reply @bangank36, Yes, I want the logo white only on the portfolio pages, but am not sure where to add your code. Try it on Home > design > custom css 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment