New Landing How can we help? Themeforest Theme Support Neighborhood Can't Remove the Free label

Viewing 2 posts - 1 through 2 (of 2 total)
  • #102752
    egad
    Member
    Post count: 27

    My child theme functions.php has the code below but i am still seeing the free label.

    <?php

    #REMOVE FREE
    add_filter(‘woocommerce_free_price_html’, ‘woo_my_custom_free_message’);
    function woo_my_custom_free_message() { return false;}

    #REMOVE SALE
    add_filter(‘woocommerce_sale_flash’, ‘woo_custom_hide_sales_flash’);
    function woo_custom_hide_sales_flash(){return false;}

    ?>

    I also tried this but it also did not work.
    <?php
    add_filter( ‘woocommerce_variable_free_price_html’, ‘hide_free_price_notice’ );
    add_filter( ‘woocommerce_free_price_html’,’hide_free_price_notice’ );
    add_filter( ‘woocommerce_variation_free_price_html’, ‘hide_free_price_notice’ );
    function hide_free_price_notice( $price ) {
    return ”;
    }
    ?>

    #102923
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please try to use this custom css code:-
    span.free-badge{display:none;}
    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register