New Landing How can we help? Themeforest Theme Support Neighborhood How to remove label on new or free products

Viewing 4 posts - 1 through 4 (of 4 total)
  • #63986
    olesenreck
    Member
    Post count: 27

    How do I remove the picture that comes on new or free products, labeled “FREE” or “NEW”?

    #64054
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please put this code in your functions.php of child theme .

    #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;}

    Thanks

    #64374
    olesenreck
    Member
    Post count: 27

    Well, that didn’t remove the “NEW” label.

    http://evening.weshape.dk/produkt/bio-b-cleansing-cream-125-ml/

    #64412
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit product-image.php at /neighborhood/woocommerce/single-product/
    Find this code at line 40
    echo ‘<span class=”wc-new-badge”>’ . __( ‘New’, ‘swiftframework’ ) . ‘</span>’;

    Replace with
    //echo ‘<span class=”wc-new-badge”>’ . __( ‘New’, ‘swiftframework’ ) . ‘</span>’;

    It will remove new .
    Thanks

Viewing 4 posts - 1 through 4 (of 4 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