ResolvedText for sale

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #23863
    gegeor
    Participant

    Hello
    currently only the % of sale is appearing on the product .How can i add a word like : “discount” next to the % ? or even a sales badge image?

    http://prntscr.com/t8l38a

    thank you

    #23871
    gegeor
    Participant

    update

    see here :http://prntscr.com/t9606t

    i want this to make it wide so to text to be shown and side the text to have percentage

    Please advise
    Thank you 🙂

    #23956
    Althemist
    Keymaster

    You can do this with CSS, but keep in mind it may cause trouble on smaller screens or 5-6 columns layouts:

    div.prod_hold .sale {
        width: auto;
        border-radius: 2em;
        padding: 0 10px;
    }
    #23960
    gegeor
    Participant

    Thank you

    i used the following code to add text
    but how i add sale percentage (%) next to my text ?

    add_filter('woocommerce_sale_flash', function() { return '<span class="sale">' . esc_html__('Έκπτωση!', 'grosso') . '</span>'; });

    #23964
    Althemist
    Keymaster

    You can’t do it like this. It would be easier to add the text directly in CSS (if it’s only in Greek and no other languages):

    div.prod_hold .sale::before {
        display: inline-block;
        content: "Έκπτωση!";
    }
    #23977
    gegeor
    Participant

    Working Fine!!!

    Many thanks!!!

    #24711
    gegeor
    Participant

    Hello

    Now i dont have the “NEW” label when i add new product
    What should i check or add?

    Thank you

    #24712
    gegeor
    Participant

    My mistake, i found it
    Thanks

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

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

License required for any item belonging to this account
AlThemist

AlThemist

sales 17375, followers 742
Login and Registration Log in · Register