Jump to content

Replace logo, change nav color - portfolio pages, not collection? 7.1

Recommended Posts

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
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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?

image.thumb.png.b97f1bf15d5f6cef913b55c22465010f.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

I use this code for logo

.header-title-logo img {
  filter: brightness(2); 
}

Support me by pressing 👍 if this useful for you

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.