I used this codes in the past. However, I discovered later that SKU are still showing in Quick View of products. Now I am using this CSS code:Mentioning the theme may help.
Or add this to your themes functions.php file (Child theme better)
function sv_remove_product_page_skus( $enabled ) {
if ( ! is_admin() && is_product() ) {
return false;
}
return $enabled;
}
add_filter( 'wc_product_sku_enabled', 'sv_remove_product_page_skus' );
Or add it to a "Snippets" plugin.
Or install a "Hide SKU" plugin.
Thanks. I will change to that.I used this codes in the past. However, I discovered later that SKU are still showing in Quick View of products. Now I am using this CSS code:
span.sku_wrapper {
display: none !important;
}
Mentioning the theme may help.
Or add this to your themes functions.php file (Child theme better)
function sv_remove_product_page_skus( $enabled ) {
if ( ! is_admin() && is_product() ) {
return false;
}
return $enabled;
}
add_filter( 'wc_product_sku_enabled', 'sv_remove_product_page_skus' );
Or add it to a "Snippets" plugin.
Or install a "Hide SKU" plugin.
The CSS code @Mar mentioned 3 posts above is better.thanks man