You have seen the Additional Information tab on your product pages. This tab usually displays product specifications, dimensions, and weight.
If your products don’t need this information, you may want to remove this tab to keep your product pages clean.
Let’s look at how to do that easily.
Table of Contents
Code Snippet to Remove the Additional Information Tab
You can remove the Additional Information tab using a simple code snippet. Here’s how to do it:
- Access Your Theme’s Functions.php File
- Add the Following Code
/*
* Snippet: How to Remove the Additional Information Tab in WooCommerce
* Author: Toufique Alahi
* URL: https://wpblogr.com
* Tested with WooCommerce 9.3.3
*/
add_filter('woocommerce_product_tabs', 'wpb_remove_additional_info_tab', 98);
function wpb_remove_additional_info_tab($tabs) {
unset($tabs['additional_information']);
return $tabs;
}
How to Add the Code Snippet
You should add the code snippet to the functions.php
file in your child theme. If you don’t have a child theme, read this guide on How to Create a Child Theme.
Once you have the child theme, follow these steps:
- Go to your WordPress dashboard.
- Hover over Appearance and click on Theme File Editor.
- On the right side, find
functions.php
andstyle.css
- Click on file names to add the code.
Paste the code and click on Update File.
If you have any questions, feel free to leave a comment below. I will try my best to answer.