Skip Navigation

[Resolved] Trying to add CSS to WooCommerce Cart

This support ticket is created 7 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by jeffreyR 7 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#558801

Tell us what you are trying to do? Add some custom CSS to the WooCommerce cart.
When I place something in the cart, go to cart, then remove it, the item that is being removed (immediately preceding the “Undo” action) is in a white font color and can barely be seen. Is there custom CSS to change that color?

Is there any documentation that you are following? Tried adding some CSS code I found on the web - did not work. Here is some code I tried, with no luck: .woocommerce-info {
background-color: #6BCBF5 !important;
}

Is there a similar example that we can see? No

What is the link to your site? Local site, so currently unavailable

#558871

Dear jeffrey,

It is out the range of Toolset support, I found there is a CSS class in the file of Woocommerce plugin:
woocommerce/assets/css/twenty-seventeen.css:

.woocommerce-message {
    background: teal;
    color: #fff;
}

You can try setup your own custom CSS codes to override it, for example:

.woocommerce-message {
    background: black !important;
    color: #fff;
}

Hope it is clear

#559032

Perfect and thanks so much for your help -

The only thing that needed to be changed was to add an "!important" after the color. Here is the actual code I used - white background with red letters, so it stands out:

.woocommerce-message {
background: #fff !important;
color: #ff0000 !important;
}