Jump to content

Changing the colour of one button in my main nav

Go to solution Solved by Ziggy,

Recommended Posts

How have you added the second button?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

@isabellarossi593 thank you, that's how I started out but had a hard time finding the correct identifier. I can't seem to find an ID when I inspect the code for the button so I tried to use the href for that button to help identify it but I must have been doing that wrong. This probably all boils down to me not being able to find/use the correct identifier.

Link to comment
  • Solution

You could try targeting with this CSS:

#siteWrapper .header .header-actions-action--cta .sqs-button-element--primary:nth-child(1) {
  background-color:red;
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
14 hours ago, hey_sp said:

@Ziggy That worked perfectly!! Thank you so much!

You're welcome!

You can change nth-child(1) to  nth-child(2) if you want to target the other button.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.