ResolvedText for sale
Tagged: sale text
- This topic has 7 replies, 2 voices, and was last updated 2 years, 10 months ago by
gegeor.
- AuthorPosts
- June 29, 2020 at 7:08 pm #23863
gegeor
ParticipantHello
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?thank you
June 30, 2020 at 4:34 pm #23871gegeor
Participantupdate
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 🙂July 1, 2020 at 12:38 pm #23956Althemist
KeymasterYou 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; }
July 1, 2020 at 12:42 pm #23960gegeor
ParticipantThank 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>'; });
July 1, 2020 at 12:49 pm #23964Althemist
KeymasterYou 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: "Έκπτωση!"; }
July 1, 2020 at 1:26 pm #23977gegeor
ParticipantWorking Fine!!!
Many thanks!!!
July 23, 2020 at 12:05 pm #24711gegeor
ParticipantHello
Now i dont have the “NEW” label when i add new product
What should i check or add?Thank you
July 23, 2020 at 12:16 pm #24712gegeor
ParticipantMy mistake, i found it
Thanks - AuthorPosts
You must be logged in and have valid license to reply to this topic.