
Jan
20
HOW TO REMOVE THE SKU AND PRICE OF THE PRODUCT ON WOOCOMMERCE
First you need to open the functions.php theme file that is active (wp-content / themes / [THEME] /functions.php).
You can download the functions.php file via FTP, edit it and then reload it, or you can navigate to:
WordPress Admin -> Appearance -> Editor
And click functions.php, edit the file and then save it.
Add the following code to the end of the file:
Hide Product SKU
if(is_product()) { add_filter( 'wc_product_sku_enabled', '__return_false' ); }
Hide product price
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 ); remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );
That’s all, now save the file and review the changes.