Hello,
Can you tell me how can I hide woocommerce SKU from product page? But that I can see in background and in order mails.
Thank you
Morning,
You can use the following to hide SKUs on a product page but keep them in the admin panel
function tj_remove_product_page_sku( $enabled ) {
if ( ! is_admin() && is_product() ) {
return false;
}
return $enabled;
}
add_filter( 'wc_product_sku_enabled', 'tj_remove_product_page_sku' );
Code should be placed in your theme / child functons.php
Hope that helps
TJ
Hello,
It is not help , It is crash site.
Ah that is not good.
Crashed as in site now wont load? can you post a link to site here?
Can you access the ftp to remove the code from the functions.php?
If you are unsure how to proceed leave your ftp / login details in the private content field below and an admin from here will be able to log in and help.
Thanks
TJ
Hi Zaccc,
If you should need help in getting your site back online then please post FTP details in private.
Thanks for helping out TJ :-)
Best regards,
Rikard
Hello,
I have return all back . I just need help with SKU.
Regards
Hi,
Add this to quick css:
.sku_wrapper{
display:none!important;
}
Best regards,
Jordan Shannon
Thank you ! It is working.
Regards
Hi,
No problem. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon