Website Building » WooCommerce » How Do I Get Rid of the Description Tab in WooCommerce?

How Do I Get Rid of the Description Tab in WooCommerce?

Last updated on January 17, 2023 @ 11:24 am

When it comes to setting up an online store, WooCommerce is one of the most popular WordPress plugins. It’s easy to use and comes with a lot of features that are essential for any eCommerce website.

However, one thing that can be a bit annoying is the default WooCommerce “Description” tab that appears on every product page.

While this tab can be useful for some products, there are also times when you might want to get rid of it. For example, if you have a product that doesn’t need a description or if you want to use the extra space for something else.

Luckily, there is a relatively simple way to remove the Description tab in WooCommerce. All you need to do is add a small piece of code to your functions.php file.

Here’s how:

  1. First, you need to access your WordPress files via FTP. If you’re not sure how to do this, check out our guide on how to use FTP.
  2. Once you’re connected, go to the /wp-content/themes/your-theme-name/ folder and open the functions.php file in a text editor.
    PRO TIP: If you are using WooCommerce to sell products on your website, you may want to remove the description tab from the product page. This can be done by going to the WooCommerce settings page and selecting the “Remove Description Tab” option.

    However, before doing this, you should be aware that the description tab contains important information about the product, such as the product’s dimensions, weight, and other essential details. Removing this tab may make it more difficult for potential customers to find this information, which could lead to fewer sales.

  3. Next, you need to add the following code at the end of the file:
function WooCommerce_remove_product_tabs( $tabs ) {
  unset( $tabs['description'] ); // Remove the description tab
  return $tabs; }
add_filter( 
  'woocommerce_product_tabs', 
  'woocommerce_remove_product_tabs', 98 );

Be sure to save your changes and upload the file back to your server.

And that’s it! Now when you go back to your product pages, the Description tab will be gone.

Conclusion

While the default WooCommerce tabs can be handy, there are also times when you might want to remove them. Luckily, it’s fairly easy to do with just a few lines of code.

How Do I Get Rid Of The Description Tab In WooCommerce? – It’s easy to remove the Description tab in WooCommerce by adding a small piece of code to your functions.

Drew Clemente

Drew Clemente

Devops & Sysadmin engineer. I basically build infrastructure online.