Skip to content
All Answers
Commerce

How do I change the shopping cart icon color in Squarespace?

The cart icon in the Squarespace 7.1 header uses SVG with the .icon--cart or .header-actions-action--cart selector. Change its color by targeting the SVG fill.

The cart count badge (the number bubble) has its own selector for background and text color, so you can style it independently from the icon.

/* Cart icon color */
.header-actions-action--cart .icon--cart svg {
  fill: #ffffff !important;
}

/* Cart count badge */
.header-actions-action--cart .icon-cart-quantity {
  background-color: #e63946 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700;
}

/* Cart icon hover */
.header-actions-action--cart:hover .icon--cart svg {
  fill: #e63946 !important;
}
Style your cart icon with our Cart Styler toolTry it free →

Related Questions

Commerce

How do I change the Add to Cart button style in Squarespace?

Commerce

How do I style the product price in Squarespace?

Commerce

How do I hide the quantity selector on Squarespace product pages?

Commerce

How do I style the product variant dropdown in Squarespace?

A little over your head?

No shame — this stuff is hard. Let the pros handle it.

Long Drive MarketingTalk to Long Drive Marketing →