If you are not selling digital products, you are probably using the weight and dimensions for your products because you need to ship them. At least the weight will be required for all the shipping services.
The “problem” is that when you add those data in the product, they appear in the single product page. How can you hide them?
There’s a very quick way to hide those data since they are not useful to the customers in most cases.
Open your functions.php file located in wp-content/themes/your-theme-name/ and add this code at the end of it:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|* Hides the product's weight and dimension in the single product page.|
|add_filter( 'wc_product_enable_dimensions_display', '__return_false' );|
Leave a Reply