Home › Forums › WoodMart support forum › Icon in add to cart button
Icon in add to cart button
- This topic has 7 replies, 3 voices, and was last updated 4 years, 10 months ago by
Elise Noromit.
-
AuthorPosts
-
December 10, 2020 at 3:09 pm #249662
owldigitalsParticipantHow can I add an icon to add to cart button, something like this?
December 10, 2020 at 7:40 pm #249730
Elise NoromitMemberHello,
Please send me the URL Of the icon and page URL where you want to change. I will provide custom CSS.
Best Regards
December 12, 2020 at 7:51 am #250255
owldigitalsParticipantThanks for the reply, see link in private content
December 12, 2020 at 6:55 pm #250407
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
body .wd-add-btn-replace .add-to-cart-loop:before{ content: "\f07a"; font-family: 'Font Awesome 5 Free'; font-weight: 900; }Best Regards
January 18, 2021 at 9:41 am #259286
PD11ParticipantHi Elise,
I was using another CSS code to add a icon in the add to cart button, but that doesn;t work anymore since one of the latest updates. Now I’d like to add the icon again and tried the CSS code above, but that doesn’t work for me. Could you please take a look?
Thanks!
January 18, 2021 at 4:48 pm #259420
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
.product-image-summary .single_add_to_cart_button:before { content: "\f07a"; font-family: 'Font Awesome 5 Free'; font-weight: 900; }Please enable “Always use” in the Theme Settings > Performance > CSS.
Best Regards
January 21, 2021 at 8:15 am #260233
PD11ParticipantHi,
I’ve tried the ccs code and it’s working. But the icon is placed without space between the icon and text. How can I add a space? Thanks!
Attachments:
You must be logged in to view attached files.January 21, 2021 at 11:51 am #260309
Elise NoromitMemberHello,
Please replace the code with this one:
.product-image-summary .single_add_to_cart_button:before { content: "\f07a "; font-family: 'Font Awesome 5 Free'; font-weight: 900; }Best Regards
-
AuthorPosts
Tagged: add to cart, icon
- You must be logged in to create new topics. Login / Register
