Jump to content

Custom CSS - Change color of specific button

Go to solution Solved by tuanphan,

Recommended Posts

Hi there,

I am trying to change the color of only one specific button on my website. There are three buttons with a background color of #333 in this specific section, and I would like to change the color of the first button to some other shade of grey.

I have looked at the code in the chrome devtools and identified the element. I tried "grabbing" it with the elements ID and the class and using something like :first-child but I can't seem to find the first button only. I always end up changing the color of them all.

Can someone point out to me what I might do wrong here?

Tanks in advance!


Edited by pale
Specified title
Link to comment
  • pale changed the title to Custom CSS - Change color of specific button
  • Solution

Add to Design > Custom CSS

/* Shop Calendar Button */
div#block-1a120f1d30f77a99311a a {
    background-color: #f1f !important;


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.