Jump to content

Changing Button Color

Recommended Posts

I'm looking to change the Button color on my home page and have tried the inserting 2 different codes under Page Settings and also under Design -> Custom CSS. Neither changed the button color.

I've also gone to Site Styles -> Button but there is no option to choose a color there (see image for Button menu options) How do I change the button color? Thanks! 

Code 1:

#button-id {
background-color: #ff0000;

Code 2: 

.button-class {
background-color: #ff0000;

Screenshot 2023-02-27 130924.gif

Link to comment
  • Replies 3
  • Views 1.8k
  • Created
  • Last Reply

Top Posters In This Topic

  • 9 months later...
On 12/27/2023 at 1:51 AM, hmrgbrll said:

How do I change for the secondary and tertiary button?

The code should apply all buttons on homepage, if you want to target Homepage Secondary or Homepage Tertiary, use this code

body.homepage [class*="primary"] {
	background-color: #000 !important;
body.homepage [class*="secondary"] {
	background-color: violet !important;
body.homepage [class*="tertiary"] {
	background-color: #f1f !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.