WooCommerce: Hide Weight & Dimensions From Additional Information Tab @ Single Product

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!

Here’s a super quick fix to remove the Weight and Dimensions table rows from the Additional Information tab on the WooCommerce Single Product page

PHP Snippet: Remove Weight and Dimensions From the Additional Information Tab @ WooCommerce Single Product Page

/**
 * @snippet       Hide Weight, Dimensions @ WooCommerce Single Product
 * @how-to        businessbloomer.com/woocommerce-customization
 * @author        Rodolfo Melogli, Business Bloomer
 * @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.

Where to add custom code?

You should place custom PHP in functions.php and custom CSS in style.css of your child theme: where to place WooCommerce customization?

This code still works, unless you report otherwise. To exclude conflicts, temporarily switch to the Storefront theme, disable all plugins except WooCommerce, and test the snippet again: WooCommerce troubleshooting 101

Related content

Rodolfo Melogli

Business Bloomer Founder

Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza. Follow @rmelogli

4 thoughts on “WooCommerce: Hide Weight & Dimensions From Additional Information Tab @ Single Product

  1. PHP snippet works perfectly on my site, with Avada theme. Thanks!

      1. Is there any way to move this ionformation to the bottom of the attributes list? Instead of it being the first item?

        1. 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!

Questions? Feedback? Customization? Leave your comment now!
_____

If you are writing code, please wrap it like so: [php]code_here[/php]. Failure to complying with this, as well as going off topic or not using the English language will result in comment disapproval. You should expect a reply in about 2 weeks - this is a popular blog but I need to get paid work done first. Please consider joining the Business Bloomer Club to get quick WooCommerce support. Thank you!

Your email address will not be published. Required fields are marked *