This topic has 4 replies, 2 voices, and was last updated 8 years, 2 months ago ago by Robert Hall
Hello,
How can I modify “sale” badge text?
Already tried below function but it is not working for me
add_filter( ‘woocommerce_sale_flash’, ‘wc_custom_replace_sale_text’ );
function wc_custom_replace_sale_text( $html ) {
return str_replace( __( ‘Sale!’, ‘woocommerce’ ), __( ‘My sale text!’, ‘woocommerce’ ), $html );
}
Hello,
This question is a bit unclear for us. Could you please clarify us with more details?
Do you mean ‘Sale’ label on the product item like on screenshot? http://prntscr.com/a0ycpa
Regards,
Robert Hall.
Hey Robert,
Yes exactly. As in screenshot.
Thanks
John
You need edit \wp-content\themes\woopress\woocommerce\loop\sale-flash.php file.
Regards,
Robert Hall.
You must be logged in to reply to this topic.Log in/Sign up