| /** | |
| * Hides the product's weight and dimension in the single product page. | |
| */ | |
| add_filter( 'wc_product_enable_dimensions_display', '__return_false' ); |
Simple, you just need to open your functions.php file located in wp-content/themes/your-theme-name/ and add this code at the end of it:
/** * Hides the product's weight and dimension in the single product page. */ add_filter( 'wc_product_enable_dimensions_display', '__return_false' );
You can even skip the commented part and add this line only, it will still do the job:
add_filter( 'wc_product_enable_dimensions_display', '__return_false' );
It dissapered when I open products on my PC, but it still shows when I open on mobileYou can even skip the commented part and add this line only, it will still do the job:
add_filter( 'wc_product_enable_dimensions_display', '__return_false' );
.class {
display: none;
}
maybe it's a caching problem.It dissapered when I open products on my PC, but it still shows when I open on mobile
If it got removed, it got removed. Try visiting the same page in incognito mode, and see if makes a difference.It dissapered when I open products on my PC, but it still shows when I open on mobile