Home › Forums › WoodMart support forum › Add to basket text change / to icon on desktop page
Add to basket text change / to icon on desktop page
- This topic has 12 replies, 2 voices, and was last updated 1 year, 6 months ago by Elise Noromit.
-
AuthorPosts
-
July 7, 2023 at 1:53 pm #479889
iksParticipantHello,
I want to change the text on desktop page of add to basket button, to be same like is on hover or on mobile page just icon of the basket.Attachments:
You must be logged in to view attached files.July 8, 2023 at 6:12 pm #480110
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
July 10, 2023 at 2:34 am #480308
iksParticipantSorry but not helpfull, I allerdy read how to translate and its not issue with translation,
I just want to usecontent: “\f123”;
font-family: “woodmart-font”;If I am right this is the icon from the “basket” – I don’t want to translate I just want on mobile and desktop the same icon that is present.
July 10, 2023 at 2:34 am #480309
iksParticipantWithout text – pretty much same behavior like is on mobile page i want for entire page.
July 11, 2023 at 1:43 am #480530
Elise NoromitMemberHello,
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
July 11, 2023 at 7:54 am #480551
iksParticipantWhen you open homepage (desktop) version – the buttons on home page desktop are Add to cart // when you scale the site or open on mobile, at some point the text add to cart just becomed even without (hover) just the ICON for the cart.
Or if you open homepage (on cellphone) mobile page, the writing on the button is ICON (only)
Shop basket – iconJuly 12, 2023 at 3:30 am #480781
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
body .wd-header-cart .wd-tools-icon.wd-icon-alt:before { content: "\f123"; font-family: "woodmart-font"; }
Best Regards
July 12, 2023 at 12:51 pm #480863
iksParticipantHello, added the code as you suggested (the code is still on site, but nothing happens)
On desktop page is still writen the entire text on button, and on mobile it is the same as it was before css update.July 13, 2023 at 3:04 am #481008
Elise NoromitMemberHello,
Please provide the page URL, I cannot catch the issue: [video]
Best Regards
- This reply was modified 1 year, 6 months ago by Bogdan Donovan.
July 13, 2023 at 11:06 am #481111
iksParticipantPlease, I want icons on desktop version mobile was fine as it was!
So check the desktop version…July 15, 2023 at 1:35 pm #481697
Elise NoromitMemberHello,
Please replace the code with this one:
body .wd-add-btn-replace .add-to-cart-loop:before { transform: translateY(0) translateZ(0); } body .wd-add-btn-replace .add-to-cart-loop span { transform: translateY(-100%) translateZ(0); }
If you have any questions please feel free to contact us.
Best Regards
July 16, 2023 at 1:20 am #481793
iksParticipantthank you its working.
Could you help me scale the images from “heart” wishlist.And could you help me increase the size of tap icons.
July 18, 2023 at 11:49 pm #482478
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
@media (max-width: 1024px) { body .wd-buttons .wd-action-btn > a { width: 48px; height: 48px; } body .wd-buttons .wd-action-btn>a:after, body .wd-buttons .wd-action-btn>a:before { font-size: 20px; } }
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register