Do anyone know how I can remove the number of current available stock that is shown on my Woocommerce product page next the the title of the product? I guess this has changed since the recent Woocommerce update because adding the code snippet
add_filter( 'woocommerce_subcategory_count_html', 'woo_remove_category_products_count' ); function woo_remove_category_products_count() { return; }
no longer works. Does anyone have a solution to this? All suggestions are very much appreciated and thank you in advance!
Advertisement
Answer
Navigate to WooCommerce > Settings > Product > Inventory. There is a setting “Stock Display Format”. Select the “Never Show Stock Amount” from the drop down.
by CSS .stock { display:none; }