Change background colour of 'Your Cart' product items

Topic summary

Goal: change the background color of “Your Cart” product items and remove the white background on product images so it matches the site theme. A screenshot was provided to illustrate the white background issue.

Solution provided:

  • Go to Shopify Admin > Online Store > Themes > Actions > Edit code.
  • Open Assets > base.css.
  • Add CSS rules setting backgrounds to transparent (with !important) for .js-contents .cart-item and table.cart-items tr.
  • Save and review the cart page.

Outcome: The original poster confirmed the CSS fix worked. The helper followed up requesting the solution be accepted.

Other notes: Another participant asked an unrelated question about the mobile width of a “view more” button in the Palo Alto theme; this was not addressed. The original cart background issue is resolved; no remaining open questions on that topic.

Summarized with AI on January 23. AI used: gpt-5.

Hey community!

Hoping someone could help.

I’m trying to change the background colour of Your Cart product items and the background colour of my product itself. It’s white (even though the image uploaded is transparent).

Ideally, I’d love the background to match with the rest of the site. I’ve included a screenshot so you can see the issue:s

Any help will be appreciated.

Thanks!

1 Like

Hello There,

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset > base.css and paste this at the bottom of the file:
.js-contents .cart-item {
background-color: transparent!important;
}
table.cart-items tr {
background: transparent!important;
}

Worked great! Many thanks!

1 Like

Hi,
Can you please help me with the width of the “view more” button on our homepage, for the mobile version, in the palo alto theme.
Kindly help me with this issue.

1 Like

Thank you for your response. It’s good to know that it’s worked for you. Kindly feel free to get back to me if you need any further assistance.
If helpful then please Like and Accept Solution.