How to Remove the SKU from WooCommerce Product Pages

A SKU, or stock keeping unit, is a way for a store to identify their products and all its associated attributes with one easy to use number or term. Support for SKUs is built-in to WooCommerce by default. You can find the field for them in the product editing screen under the “Inventory” tab.

SKU Field in WooCommerce
The SKU field in the WooCommerce Product Admin

SKUs are a very important for stores that deal with a lot of products and inventory variations. They are key in recommendation/suggestion systems for online retails. At a more basic level they play a vital role in inventory management and tracking.

So SKUs are great but what’s not so great is that many WooCommerce themes, including the very popular Storefront, show them by default on the product pages of your site.

SKU in WooCommerce
An example of a SKU in WooCommerce

Typically, your customers don’t really care abou the product SKU and this information is just cluttering up your buying process. You can remove the SKU field entirely from your WooCommerce store if you aren’t afraid to get your handles a little dirty in some code (or want to pay a developer to take care of this for you).

How to Remove SKUs from WooCommerce through Code

You’re going to need to edit the functions.php file of your WordPress theme, add the following lines of code at the bottom and then save the file and upload the changes to your site.

add_filter( 'wc_product_sku_enabled', 'my_remove_sku', 10 );
function my_remove_sku( $return, $product ) {
    if ( !is_admin() && is_product() ) {
        return false;
    } else {
        return true;
    }
}

That code is going to remove the SKU display on your product pages but still keep the field on the admin side of WooCommerce. Beware that many other tutorials online have code that will remove SKUs from WooCommerce entirely, front and admin, and that might not be what you need.

Keep in mind that any changes you make to a theme’s functions.php can be lost if you update the theme or change to a different one entirely. You will have to add those lines of code back in a scenario like that to get SKUs off of your store again.

How to Quickly Remove SKUs from WooCommerce

You can purchase our Remove WooCommerce Features plugin and have SKUs remove from your site in seconds without having to write any code or pay a WordPress developer to work on your theme for you. After your copy of Remove WooCommerce Features is installed and activated the process is easy.

Step #1

Go to the WooCommerce section of your WordPress installation’s admin menu and click the link that says “Remove Features.”

WooCommerce Admin Menu

Step #2

Find the setting for “SKU” and click the checkbox so that it’s marked like so:

Remove WooCommerce Features - SKU

Step #3

Press the “Save Settings” button.

Save Settings Button

SKUs will be removed from the product pages on your site as soon as you’ve hit that “Save Settings” button. Your products will now look something like this:

SKU Removed from WooCommerce
An example of the SKU Removed from WooCommerce

On the admin side, Remove WooCommerce Features keeps the SKU field intact so you can still make use of it internally.

One extra bonus of using our plugin is that your change will last no matter what theme you are using so you don’t have to worry about constantly updating files to keep SKUs off of your site.

Plus, Remove WooCommerce Features supports all sorts of additional changes you might want to make to your store. The process for each is just as simple as removing SKUs. With a few clicks of your mouse you’ll be able to:

Check out the full list of features here on our site.