WooCommerce ‘Sale’ badge icon! - by Eduard

This topic has 6 replies, 2 voices, and was last updated 2 years, 9 months ago ago by Rose Tyler

  • Avatar: Eduard
    Eduard
    Participant
    December 3, 2019 at 01:12

    Please help me to change the icon badge of sale in another picture, i have tried everyting and it not works.

    https://prnt.sc/q5azcb

    Please helppp meeee

    Thank you very much

    5 Answers
    Avatar: John Holden
    John Holden
    Support staff
    December 3, 2019 at 05:21

    Hi,

    Unfortunately, this is not an option built into the theme at the moment. We will see if this can be improved in the future.

    Regards,

    Hung PD

    Avatar: La Tienda Vinos
    La Tienda Vinos
    Participant
    March 16, 2022 at 14:53

    Hi. there is any way to change the SALE text for an image?
    any hook? thanks

    Im using this filter
    add_filter( ‘woocommerce_sale_flash’, ‘woocommerce_custom_badge’, 10, 3 );

    working on custom theme. but not on XStore.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 16, 2022 at 15:09

    Hello La Tienda Vinos,

    Custom CSS code can be used, for example:

    .content-product .sale-wrapper:before {
        content: '';
        background-image: url(link to your image);
        background-size: contain;
        background-repeat: no-repeat;
        display: inline-block;
        position: absolute;
        z-index: 1;
        width: 100px;
        height: 20px;
        top: 5px;
        left: 5px;
    }
    .content-product .sale-wrapper > span {
        display: none;
    }

    Regards

    Avatar: La Tienda Vinos
    La Tienda Vinos
    Participant
    March 17, 2022 at 14:26

    Excelent !!! no hooks but css…

    there is any way to do this same thing but i need to mark wich are the featured products..!?

    thanks!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 17, 2022 at 15:29

    We don’t have the option to set the featured label for the products. Look for third-party plugins for the custom labels for the products.

    Regards

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.