The short answer
To change every button, use Site Styles. It takes a minute and needs no code.
To change one button without changing the others, Squarespace has no setting. You add a few lines of custom CSS (the code that controls how a page looks). Both ways are below.
Change every button with Site Styles
- Open your site in the Squarespace editor and click Edit on any page.
- Open Site Styles (the paintbrush icon).
- Choose Colors, then edit the color theme your section uses.
- Find the Buttons settings and pick a new background color.
- Click Save.
Every button in sections that use that color theme changes together. If that is what you want, you are done.
Change one button with custom CSS
Each block on a Squarespace page has its own ID, a long name starting with block-. Custom CSS can use that ID to style one button and leave the rest alone.
- Open your live site in Chrome. Right-click the button and choose Inspect.
- In the panel that opens, look just above the highlighted line for an
idthat starts withblock-. Copy it. - In Squarespace, open the Pages panel, click Custom Code at the bottom, then Custom CSS.
- Paste the code below. Replace the ID with yours and the color with the one you want.
- Click Save.
#block-yui_3_17_2_1_1700000000000_1234 .sqs-block-button-element {
background-color: #1a73e8;
}The value after background-color is a hex code, a six-character name for a color. Any color picker will give you one.
#1a73e8 !important in place of #1a73e8. That tells the browser your color wins over Squarespace's own.Squarespace's own instructions for the Custom CSS panel are in its help article, Add custom CSS to your site.
The easier way: click the button and pick a color
The hard part of the steps above is finding the right ID and writing the code without a typo. NudgeCSS is a Chrome extension that does that part for you.
- Install NudgeCSS and open your live site in Chrome. Use the public address, not the Squarespace editor.
- Click the NudgeCSS icon, then click the button you want to change.
- Open Appearance and choose a new Background color. The button changes on the page as you pick.
- Click Export Changes, choose the CSS Patch tab, and click Copy to Clipboard.
- Paste it into Squarespace's Custom CSS panel and click Save.
- Open your live page in a private browser window to see the change.
Picking and previewing colors is free. Exporting the code is part of NudgeCSS Studio, which is $30, paid once. You can try the Studio editing tools free for 7 days before you decide.
Common questions
Why didn't my button color change after I pasted the code?
First, check your live page in a private browser window. The preview inside the Squarespace editor may not show the change even when it is working for visitors. If the live page has not changed either, the most common reason is that Squarespace's own button style is winning. Add !important after the color, before the semicolon, then save and reload the page. Also check that the block ID in your code matches the button you want to change.
Will this change every button on my site?
No. Code that starts with a block ID changes only the button inside that block. To change every button at once, use Site Styles, which needs no code.
Can custom CSS break my Squarespace site?
It can change how things look, but it cannot delete your content. If something looks wrong, remove the code from the Custom CSS panel and save. Your site returns to how it was.
Does NudgeCSS change my live site?
No. NudgeCSS shows a preview in your own browser. Nothing changes for your visitors until you paste the exported code into Custom CSS and save.
Try it on your own site
NudgeCSS is free to install and edit with. No account needed.