I've done some custom code on our client's Trademark theme. On our product pages, the icons in product-features.liquid display correctly.
However, when I imported the product-features.liquid file into the homepage, the icons did not display. No amount of padding adjustment seemed to work.
See attached images for reference.
Noob here. I'd love to know what I'm doing wrong. Thanks in advance!
Solved! Go to the solution
This is an accepted solution.
I checked and the code works just fine on product page with product metafields. If you want to display the icon on the homepage, you need to enter the Icon name for it.
First icon you just need to enter "cog". 2nd icon you enter "bluetooth".
Hope it clear to you.
First, many thanks for verifying the product-features.liquid code.
My apologies; it is not clear to me where or in which file I should place the URL or the icon names.
The icons already exist in the schema in product-features.liquid, and are mentioned in settings_data.json.
Again, sorry for the noob questions. etting closer to a solution, however.
Okay, I figured it out.
To clarify, you are referring to theme.liquid, and the URL is to be placed right after the header:
<script src="https://use.fontawesome.com/releases/v5.15.3/js/all.js" data-auto-replace-svg></script>
As a result, all icons show up on the homepage as well as the product pages.
If the moderators agree, I'm going to mark your previous post as the accepted solution.
Thank you for your efforts.