Jump to content

How to change the menu colors on different pages

Go to solution Solved by tuanphan,

Recommended Posts

16 hours ago, Flinx said:

Hi there,

I would like to change the background-color and text-color of the menu on the different pages. So the menu on the frontpage is beige, the menu on the contact page is blue etc.

Is that possible?

Password: Suikido

Skærmbillede 2022-11-27 kl. 14.39.27.png

We can achieve this style by using the Css code with the right target Page Id.

You can get the page Id via the following extension: Squarespace ID Finder

How to get Page Id: http://recordit.co/qwnj09oNCa

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

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

You can share your URL site and we can take a look

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

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
  • Solution
On 11/28/2022 at 5:02 PM, Flinx said:

For sure, thanks a lot! 

 

https://kale-parakeet-5fz8.squarespace.com/

 

Password: Suikido

 

I would like to have dark menu + footer on the dark pages and light menu + footer on the light.

You can add this code to Page Header on each page.

If the site is Personal Plan, you can edit that page > Add a Code Block

<style>
  .header-background-solid {
    background-color: #f1f !important;
}
header#header a:not(.btn) {
    color: black !important;
}
  header#header svg {
    fill: black;
}
</style>

Replace color to what you want.

This code change background color, nav items color, icons color

If you need to change other elements, let me know, we will adjust the code

 

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
  • 3 months later...
  • 9 months later...
On 12/24/2023 at 9:47 AM, HouseBlend said:

I have a similar issue, except my events module that creates the pages uses a black nav on them instead of the the white the rest of the site uses. Since all those events are individual pages, how do I affect that outcome?

Thanks in advance for your help!

 

Screenshot 2023-12-23 at 9.47.06 PM.png

Screenshot 2023-12-23 at 9.47.23 PM.png

Use this code to Custom CSS box

[class*="type-events"].view-item div.header-nav-item>a {
	color: white !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.