Change "Sale"text in shop

Is is possible to change the “sale” text in the shop? If possible, I would also like to change the colour…

See attached picture

Hello there,

I hope you are doing well today.

In order to change the sales text, you would have to add the following php code to your functions.php file:


//Woocommerce OneSALE customize text 
add_filter('woocommerce_sale_flash', 'my_custom_sale_flash', 10, 3);
function my_custom_sale_flash($text, $post, $_product)
{
    return '<span class="onsale">Your text here</span>';
}

Before adding that code, please backup your WordPress with the following plugin:

As it relates to changing the color, you can do so with some CSS code. Could you please provide a link to the site so that I can create that code for you?

Best Regards,
Support