Archived topic
How to change "Sale!" badge wording?
5 replies · Started by Christopher on August 20, 2020
Is there a way to easily update the sale badge wording without modifying the functions.php file? When I inspect the element in my browser I can see <span class="onsale">Sale!</span>, however, I would like it to say <span class="onsale">Pre-order Discount</span>. I would share my WooCommerce site however, I don't have staging set up right now and I don't want the page to be live yet.
Hi there,
This is controlled by WooCommerce plugin itself and not the theme.
I found this article that might help:
https://www.cloudways.com/blog/change-sale-badge-text-in-woocommerce/
Thanks Leo, this is the site that I found as well. However, when I open functions.php it says not to edit the file directly. Can you point me in the right direction to include that functionality in the link you shared without changing the functions.php file?
Try one of these methods:
Adding PHP: https://docs.generatepress.com/article/adding-php/
Thank you Leo, this is perfect! I'll let you know if I have success so others can follow the same instruction.
Sounds good. It should work :)