Tagged: Sale tag
Hello,
I tried those two things, to get rid of the onsale badge:
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 );
remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_sale_flash', 10 );
It worked on the product detail page but not in product listings. The guys from woo stated the code I use is correct and I shall ask the theme developer….
any idea?
Thank you
Tom
Hey Tom!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
span.onsale {
display: none !important;
}
Regards,
Yigit
and how to remove it without css but in functions.php ???
Hi!
Please add following code to Functions.php file in Appearance > Editor
add_filter('woocommerce_sale_flash', 'woo_custom_hide_sales_flash');
function woo_custom_hide_sales_flash()
{
return false;
}
Best regards,
Yigit