It is no secret that many online retailers use SKU numbers to keep track of their inventory. However, there are a few reasons why you might want to hide the SKU number on your WooCommerce site.
Perhaps you think it looks unprofessional, or maybe you simply want to declutter your product pages. Whatever the reason, hiding the SKU number on WooCommerce is relatively easy to do.
The first thing you need to do is install and activate the WooCommerce Hide SKU plugin. For more information, see our step by step guide on how to install a WordPress plugin.
Once the plugin is activated, go to WooCommerce > Settings from your WordPress admin panel. On the General tab, scroll down to the Inventory section and check the box next to “Hide SKU for out of stock products”.
Now any products that are out of stock will have their SKU number hidden on the front-end of your website.
Hiding SKU Numbers for All Products
If you want to hide the SKU number for all products, regardless of whether they are in stock or not, then there is a little bit of code you can add to your functions.php file.
PRO TIP: If you are considering hiding your SKU in WooCommerce, be aware that this may have negative consequences for your store. Hiding your SKU can make it difficult for customers to find the product they are looking for, and may also make it more difficult for you to track inventory levels.
You should always back up your site before making any changes to your code.
First, you need to connect to your website using an FTP client like Filezilla and go to the /wp-content/themes/your-theme-folder/ directory. Within your theme folder, locate and open the functions.php file in a text editor like Notepad++.
Your theme folder will be named after the theme you are using. For example, if you are using the Twenty Seventeen theme, then your theme folder will be called twentyseventeen.
At the bottom of your functions.php file, add this code:
function wc_hide_sku_ everywhere() {
global $product;
return $product->get_sku();
}
add_filter( 'wc_product_sku_enabled', 'wc_hide_sku_everywhere' );
Save your changes and upload the modified functions.php file back to your server.
Conclusion: How Do I Hide SKU WooCommerce?
By following the steps above, you can easily hide the SKU number on WooCommerce products that are out of stock. If you want to hide the SKU number for all products, then you can add a little bit of code to your functions.
8 Related Question Answers Found
There are a few different ways that you can hide WooCommerce. One way is to simply not install the WooCommerce plugin. If you’re not using WooCommerce on your WordPress site, then there’s no need to have the plugin installed.
If you want to keep your WooCommerce account hidden from public view, there are a few things you can do. First, you can go to your WooCommerce settings and click on the “Accounts” tab. From there, you can select the “Hide my account from the WordPress frontend” option.
To hide a product in WooCommerce:
Go to “Products” > “All Products”
Hover over the product you want to hide and click “Quick Edit”
In the Visibility drop-down, select “Hidden”. Finally, click “Update”. Your product will now be hidden.
There are a few different ways that you can go about hiding a WooCommerce product filter. One way is to simply remove the filter altogether from your WooCommerce store. This can be done by going into your WordPress admin panel and navigating to WooCommerce > Settings > Advanced > Product Filters.
When you are running a WooCommerce store, there are a few things that you need to take into account in order to make sure that your customers are happy. One of those things is shipping. You need to make sure that your shipping is fast, efficient, and affordable.
How Do I Hide a Single Product in WooCommerce? There are a few different ways that you can hide a single product in WooCommerce. One way is to simply set the product’s “Visibility” setting to “Hidden.” This will hide the product from all areas of your site, including your shop page and product category pages.
There are a few different ways that you can hide additional information in WooCommerce. One way is to use the built in visibility options. To do this, go to the product page and click on the “eye” icon next to the product name.
It is no secret that many WooCommerce stores have a lot of products with a lot of different variations. This can make the product page appear very long and daunting to customers, which can result in lost sales. One way to combat this is to hide the additional information tab on the product page.