Hide SKU and other details within Woocommerce single product page

Trusitio Support

You are here:
< Back

X Theme tested code snippet to hide the Woocommerce SKU form the frontend

Use the following to hide “SKU” only (Please place this in your functions.php)

function sv_remove_product_page_skus( $enabled ) { if ( ! is_admin() &amp;&amp; is_product() ) { return false; } return $enabled; } add_filter( 'wc_product_sku_enabled', 'sv_remove_product_page_skus' );

Use the following (If using X Theme) to hide the “Sku” “Category” and “Tags” (Place this in your “Global” CSS section within cusomizer)

.sku, .posted_in, .tagged_as, .product_meta {
	display: none !important;