Home › Forums › WoodMart support forum › Need help with “Sold out” badge in mobile
Need help with “Sold out” badge in mobile
- This topic has 13 replies, 3 voices, and was last updated 6 months, 1 week ago by Elise Noromit.
-
AuthorPosts
-
October 18, 2023 at 1:47 pm #505084
gytisgrigaliunassParticipantHey,
Need solution to help fit “Sold out” badge name translated to Lithuanian “Išparduota” in mobile version.
Page link: https://houstera.lt/produkto-kategorija/biuro-technika/darbo-stalai/
I add link and print screen for reference.Attachments:
You must be logged in to view attached files.October 18, 2023 at 3:32 pm #505138
Elise NoromitMemberHello,
You can translate/rewrite all theme and plugin texts via PO file in WordPress. Here is a video tutorial that should help you translate your website texts with a Loco Translate plugin https://www.youtube.com/watch?v=D3NsDdMzsls&list=PLMw6W4rAaOgKKv0oexGHzpWBg1imvrval&index=3
Please check the video tutorial to see how to save the translation file correctly. You can remove the plugin and translations would remain. Also, translations would remain after each theme update.
In order to translate the WooCommerce strings, you need to create a separate translation in Loco > Plugins > WooCommerce in the same way as shown in the video.
Best Regards
October 19, 2023 at 10:07 am #505346
gytisgrigaliunassParticipantI know how to do translation, but problem is control font size in mobile version, how to make smaller Sold out badge font size?
October 19, 2023 at 3:59 pm #505449
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Mobile:
body .labels-rectangular .out-of-stock{ font-size:12px; }
or
body .labels-rounded .out-of-stock{ font-size:12px; }
Best Regards
October 20, 2023 at 10:46 am #505658
gytisgrigaliunassParticipantI tried both codes and also tired font size number change, but still no result…
Link: https://houstera.lt/produkto-kategorija/biuro-technika/darbo-stalai/
Attachments:
You must be logged in to view attached files.October 20, 2023 at 1:02 pm #505696
Elise NoromitMemberHello,
Please provide the page URL where I can see the label.
Best Regards
October 21, 2023 at 2:52 pm #505995
liutauraspalionisParticipantHey,
I aded link two times in previest messages, but here ones again.
Link: https://houstera.lt/produkto-kategorija/biuro-technika/darbo-stalai/October 21, 2023 at 10:13 pm #506042
Elise NoromitMemberHello,
Please use this custom:
body .product-labels.labels-rounded .product-label { font-size: 10px; }
If you have any questions please feel free to contact us.
Best Regards
October 23, 2023 at 11:31 am #506252
liutauraspalionisParticipantStill not working, code does nothing.
Link: https://houstera.lt/produkto-kategorija/biuro-technika/darbo-stalai/
October 23, 2023 at 2:32 pm #506330
Elise NoromitMemberHello,
I have checked and the code works: https://gyazo.com/513c5b35700b163e4b8d20f9bc8c9d03
Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.
Best Regards
October 23, 2023 at 4:49 pm #506415
liutauraspalionisParticipantYou miss understood me, it is not discount number, but the “Sold out” badge text in mobile phone
I add once more print screen of the badges.
Link: https://houstera.lt/produkto-kategorija/biuro-technika/darbo-stalai/
And credentials to log in.
Attachments:
You must be logged in to view attached files.October 24, 2023 at 1:51 am #506512
Elise NoromitMemberHello,
Please use this code:
body .product-labels.labels-rounded .out-of-stock { font-size: 8px !important; }
If you have any questions please feel free to contact us.
Best Regards
October 25, 2023 at 2:55 pm #507109
liutauraspalionisParticipantThis worked, thanks!
October 26, 2023 at 2:40 am #507289
Elise NoromitMemberYou are welcome!
Wish you a wonderful day!
-
AuthorPosts
The topic ‘Need help with “Sold out” badge in mobile’ is closed to new replies.
- You must be logged in to create new topics. Login / Register