How to change the word “Sale” on the WooCommerce sale badge

TIPS

May 25, 2019 | WooCommerce Tips | 0 comments

Add the function below to your child theme functions.php file. [php] // change Sale to Save on the sale badge add_filter( ‘woocommerce_sale_flash’, ‘wc_custom_replace_sale_text’ ); function wc_custom_replace_sale_text( $html ) { return str_replace( __( ‘Sale!’, ‘woocommerce’ ), __( ‘Save!’, ‘woocommerce’ ), $html ); } [/php]

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

More Tips

Ad - Web Hosting from SiteGround - Crafted for easy site management. Click to learn more.

Cloudways Hosting

WPEngine Hosting

Pressable Hosting

AccuWeb Hosting

Ask the Divi Guy a Question

"*" indicates required fields