If a WooCommerce product comes with weight and/or height / length / width values, these will be displayed by default in the Single Product page, under the “Additional Information” tab.
Should you need to hide them completely from the frontend while keeping the list of attributes below them, thankfully there’s a PHP one-liner you can use. Enjoy!
PHP Snippet: Remove Weight and Dimensions From the Additional Information Tab @ WooCommerce Single Product Page
/**
* @snippet Hide Weight, Dimensions @ WooCommerce Single Product
* @how-to Get CustomizeWoo.com FREE
* @author Rodolfo Melogli
* @compatible WooCommerce 8
* @community https://businessbloomer.com/club/
*/
add_filter( 'wc_product_enable_dimensions_display', '__return_false' );
Advanced Plugin: WooCommerce Product Tabs
In case you’re not comfortable editing PHP, I also found a plugin that lets you a similar result to the code snippet without having to make any code changes.
The WooCommerce Product Tabs plugin lets you hide or rename the default product page tabs, and create new ones of your own. To hide the weight or dimensions from the Additional Information tab, you can hide the default tab and create a new one containing whatever product data you like.
As well as giving you more control over your product tabs, the plugin comes with some extra bonus features such as adding an icon to the new custom Additional Information tab.
PHP snippet works perfectly on my site, with Avada theme. Thanks!
Great!
Is there any way to move this ionformation to the bottom of the attributes list? Instead of it being the first item?
Hi Adam, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!