magentofont-awesomemagento2

Problem with Font Awesome icons on Magento 2


I'm trying to add Font Awesome icons in Magento 2 (2.4.3), but I have a problem: HTML tags are not replaced by the svg icon. The script loads, the HTML tag is rendered on the page, but it is not working. I tested the same code in another project (HTML only) and it works. I think it's a problem working with Magento.


Solution

  • I solved this by creating a custom script to load the SVG files from my own server.