Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #601240

    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

    #601276

    Hey Tom!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    span.onsale {
        display: none !important;
    }

    Regards,
    Yigit

    #601282

    and how to remove it without css but in functions.php ???

    #601285

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.