Jump to content

Change colour of 'remove item' button in the shopping cart

Recommended Posts

  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

10 hours ago, MaxT said:

I'm trying to change the colour of the 'remove item' button in the shopping cart page. Any ideas on what custom CSS to use to change its colour?

 

You can change it by adding something like this to Design > Custom CSS:

.CartTableRow-itemRemove-6Q3nP button span {
  color: #fff;
  opacity: .6;
}

The example above changes it to white, and increases the opacity. By default, the opacity is low (0.4) until you hover over it.

About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

Link to comment
35 minutes ago, paul2009 said:

 

You can change it by adding something like this to Design > Custom CSS:


.CartTableRow-itemRemove-6Q3nP button span {
  color: #fff;
  opacity: .6;
}

The example above changes it to white, and increases the opacity. By default, the opacity is low (0.4) until you hover over it.

Hi Paul, I added this in but the colour still remains as the same colour, any other advice?

Link to comment

After adding it, you'll need to refresh the page.

Is the CSS still there? I don't see it on your site currently.

About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

Link to comment
29 minutes ago, paul2009 said:

After adding it, you'll need to refresh the page.

Is the CSS still there? I don't see it on your site currently.

Ah! It's working now, I forgot to refresh the page! Cheers for the help

Link to comment
  • 3 months later...
  • 5 months later...
On 4/8/2021 at 4:51 AM, Dovile said:

Hi, done all of the above but it didn't resolve the issue?

Add this to Design > Custom CSS

/* cart x icon color */
button[title="Remove Item"] {
    color: #f5b200 !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.