Help me remove the 'sale' text button in flatsome theme

Sandie2018

Power Member
Joined
Mar 26, 2018
Messages
699
Reaction score
338
Hi guys,

Does any of you use flatsome theme for woocommerce?

I want to show the product discount by the price only and would like to remove the 'sale' text that appears on the picture of a product after I make the discount.

Could anyone tell me how to do it?

Thanks
 
There's already the option in the theme that help you turn off the sale text.
 
Thanks, I'll look for this option.
 
@alice252293

I can't find this option. Could you tell me where it is?

Once again, I want to make a discount for some items, so I want the price with a discount to be shown, but I don't want the bubble with the text 'sale' to appear on the product.

Thanks
 
You should contact the seller or some community groups related to that theme
 
@alice252293

I can't find this option. Could you tell me where it is?

Once again, I want to make a discount for some items, so I want the price with a discount to be shown, but I don't want the bubble with the text 'sale' to appear on the product.

Thanks
Customize => Woocommerce => Product Catelog => Scroll down to Sale Bubble Text. You can enable, turn off and edit the text.
 
Create a child theme and in functions.php add

add_filter('woocommerce_sale_flash', 'woo_custom_hide_sales_flash');
function woo_custom_hide_sales_flash()
{
return false;
}

or if you want custom text in there:

add_filter( ‘woocommerce_sale_flash’, ‘bhw_custom_woocommerce_sale_flash’ );
function bhw_custom_woocommerce_sale_flash()
{
return ” . (‘Custom text here’, ‘woocommerce’) . ” ;
}
 
I want to hide completely the bubble with the text 'sale' but I want the price to show the discount.

https://imgur.com/a/MC6TBFz

I will try with css, though I am a beginner, that's why I thought there would be an easier way to do it from the theme.
 
Back
Top