How to Remove WooCommerce SKU

SKUs, or stock-keeping units, are 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 part of 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.

SKU in WooCommerce
An example of a SKU in WooCommerce

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.

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 Hide SKUs from WooCommerce with Code

Hiding the SKUs from your WooCommerce product pages is something you can do yourself. Keep in mind this process is technical in nature and not for everyone. There are some risks involved in going this route. It helps to have a WordPress development background.

WARNING! The first thing you need to do is make a backup of your site. Making a mistake in the following steps means your WordPress theme will need to be restored. Make your code changes locally and never on a live site. Upload the changes to your site’s server using FTP when you are ready.

Create a Child Theme

No one should make changes directly to a WordPress theme. All of your changes will be overwritten the next time the theme updates. Luckily, WordPress has a solution for this called child themes. Creating and setting up a child theme isn’t a very complicated process. You can learn more about it on the official WordPress site.

Add Code to the Child Theme

It’s time to get your hands dirty with a little bit of PHP programming. First, create a functions.php file in your child theme’s directory. Second, open that file up and add the following lines of code at the bottom.

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;
    }
}

Finally, save the functions.php file. The code you added is going to remove the SKU display on your product pages. Importantly, it will 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.

Don’t get discouraged by all of these technical steps. This kind of WordPress work isn’t for everyone. You can take care of this all without writing any code. You don’t even need to search for a freelance WooCommerce developer and pay them. Jump ahead to learn how our Remove WooCommerce Features plugin can handle this for you.

Upload Your Child Theme

Unfortunately, we aren’t done yet.

Now that your child theme is ready, with our code changes, you need to upload it to your web host. FTP is the most common method for doing this and there are dozens of free FTP clients available. Uploading files isn’t for everyone so you might want to consider hiring help for this. Your store’s web host might be able to offer a hand as well through their support staff.

Activate Your Child Theme

The time has come to test out your code. The WordPress admin has a menu option called Appearance. Click on the submenu option called Theme to find your child theme. If you did everything correctly you should be able to select your theme and be good to go.

You’ll know there is a coding problem if the child theme doesn’t appear or your store begins to throw errors or doesn’t load. When that happens review the code and check that you uploaded all of the files correctly.

You did it! You have become a WordPress developer. Of course, this isn’t everyone’s goal and it can be time-consuming and frustrating. Thankfully. there’s a quicker way to remove WooCommerce SKU from your theme.

How to Quickly Disable WooCommerce SKU

You can purchase our Remove WooCommerce Features plugin and have SKUs removed from your site in seconds. You won’t have to write any code or pay a WordPress developer to do the work for you. The whole process can be done in three short steps.

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 button.

Clicking the “Save Settings” button will remove SKUs from the product pages on your site. The change takes place immediately.

WooCommerce Disable SKU Screenshot
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. 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:

Remove WooCommerce Features Logo