[Support request] How to change “Sale!” badge wording?

Home Forums Support [Support request] How to change “Sale!” badge wording?

Home Forums Support How to change “Sale!” badge wording?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1411794
    Christopher

    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.

    #1411892
    Leo
    Staff
    Customer Support

    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/

    #1411998
    Christopher

    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?

    #1412018
    Leo
    Staff
    Customer Support

    Try one of these methods:
    Adding PHP: https://docs.generatepress.com/article/adding-php/

    #1412029
    Christopher

    Thank you Leo, this is perfect! I’ll let you know if I have success so others can follow the same instruction.

    #1412058
    Leo
    Staff
    Customer Support

    Sounds good. It should work 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.