How To Remove Sale Tag In Woocommerce

It is a common custom for many online store owners to want to remove the sale tag in WooCommerce. This can be easily achieved by following a few simple steps, whether for a more professional and organized look or to adjust the default settings.

First, let’s take a look at why you might want to remove the sale tag. By default, WooCommerce automatically adds a “sale” tag to products that have a discounted price. While this can be helpful for highlighting discounted items to customers, it may not always align with the desired aesthetic of your online store. Additionally, some store owners may prefer to manually add their own custom tags or labels to indicate a product’s discounted status.

In order to remove the sale tag in WooCommerce, you can utilize a bit of custom code. Here’s how:

Step 1: Access your WordPress Dashboard

To begin, log in to your WordPress website and navigate to the dashboard.

Step 2: Go to the Theme Editor

Once you’re in the WordPress dashboard, go to “Appearance” and select “Theme Editor” from the drop-down menu. This will open the theme editor, where you can make changes to your website’s theme files.

Step 3: Locate the functions.php file

In the theme editor, look for the “functions.php” file. This file is responsible for handling various functions and customizations in your WordPress theme.

Step 4: Add custom code

Within the functions.php file, add the following code snippet:

add_filter( 'woocommerce_sale_flash', 'remove_sale_flash' );
function remove_sale_flash() {
return '';

This code adds a filter that modifies the sale flash output, effectively removing the sale tag from your products.

Step 5: Save changes

After adding the code snippet, click on the “Update File” button to save the changes you’ve made to the functions.php file.

That’s it! The sale tag should now be removed from your WooCommerce products.

Now, it’s important to note that making changes to your theme files can be risky, especially if you’re not familiar with coding or making customizations. It’s always a good idea to create a backup of your website before making any modifications.

In conclusion, removing the sale tag in WooCommerce is a simple customization that can be achieved with a few easy steps. By following the above instructions, you can create a more customized and professional appearance for your online store. Remember to proceed with caution and make backups to ensure the safety of your website.