As a shop manager you may want to see the WooCommerce order status in different colors on the orders page.

This is how to change the color of the Order Cancelled Status in WooCommerce. You need to either add the following snippet to your (child) theme's functions.php file or in a system plugin in /mu-plugins/ folder. Create the folder if it doesn't exist yet and create a php file in that folder and paste the code. It will be loaded automatically and won't need any special activation.

It is important to use !important after defining the styles because WooCommerce styles would take precedence otherwise.

The example below allows you to change the font color and the background color of the cancelled order status. If you want just one or the other you can either put the line in a multi line comments /* */ or just delete it.


add_action('admin_head', 'orbisius_tutorial_7472_render_styles');

 * This will override text color and background color of Cancelled Order Status in WooCommerce - Orders
 * @return void
 * @see
function orbisius_tutorial_7472_render_styles() {
        .order-status.status-cancelled {
            color: #fff !important;
            background: red !important;

Disclaimer: The content in this post is for educational purposes only. Always remember to take a backup before doing any of the suggested steps just to be on the safe side.
Referral Note: When you purchase through an referral link (if any) on this page, we may earn a commission.
If you're feeling thankful, you can buy me a coffee or a beer