Jump to content

How to customise the menu colour on different pages (including logo + language item)

Go to solution Solved by tuanphan,

Recommended Posts

Hi, I would like to update my main navigation colour (that is white on a gradient background everywhere) - to be different on the Store page only (Screenshot 2). I would like the nav text there to be black on a white background, without the gradient background, and updating the white logo (imported, not text) + the language switcher to be black also.

I had managed to find the code to update the menu text only, although the logo and language switcher + gradient remained as before (as per screenshot 3).
Can someone help me? Thanks!

Screenshot 2023-01-27 at 14.31.02.png

Screenshot 2023-01-27 at 14.31.12.png

Screenshot 2023-01-27 at 14.35.21.png

Link to comment
  • 3 weeks later...
  • Solution
On 2/13/2023 at 3:57 AM, CL130 said:

Hi, just seeing this. Didn't receive notifications before somehow.
The url is : https://www.cosmaterra.earth/
Thanks!

Add to Design > Custom CSS

body[class*="type-products"] .header-background-gradient {
    background-color: white !important;
    opacity: 1 !important;
    background-image: unset !important;
}
body[class*="type-products"] header#header .header-nav-item * {
    color: black;
}
body[class*="type-products"] header#header img {
    filter: invert(1);
}

image.thumb.png.4fa381b2f2731c1ffb75f77ef47887ac.png

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 weeks later...
  • 2 months later...

Hi there again, could you please help me remove the navigation's gradient, but this time on the Homepage. (Custom CSS has also been made for the navigation in the shop section, and happy with it). The gradient remains necessary on other pages otherwise.
- the Homepage has a colour background
Thank you

 

Screenshot 2023-05-04 at 10.03.27.png

Link to comment
On 5/4/2023 at 11:07 PM, CL130 said:

Hi there again, could you please help me remove the navigation's gradient, but this time on the Homepage. (Custom CSS has also been made for the navigation in the shop section, and happy with it). The gradient remains necessary on other pages otherwise.
- the Homepage has a colour background
Thank you

 

Screenshot 2023-05-04 at 10.03.27.png

Add to Design > Custom CSS

/* Homepage - Remove header gradient */
body.homepage .header-background-gradient {
    background-image: none !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

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.