[Resolved] Using Font Awesome Icons in WooCommerce Add to Cart Button
This support ticket is created 6 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Languages: English (English )Chinese (Simplified) (简体中文 )
Timezone: Asia/Hong_Kong (GMT+08:00)
Dear rusty,
It is the HTML "i" tag does not work as expected inside the HTML "a" tag, so I suggest you use some JS codes to add CSS class "fa fa-cart-plus" into the "Add to Cart" button, for example:
Thanks Luo. That indeed does add the icon, but it also resets the typestyle of the entire button which won't work. I think that at this time it's just not possible, unless you have another suggestion?
More help: hidden link
.prepend()
Description: Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.