Hey y'all,
I have a template where each icon is basically a macro, for instance:
Now, in the case of this icon, when I changed "fa-solid" to "fas", the icon loads - but for some reason it's less of a square like before and looks more like a rectangle instead. I've changed all the "fa-solid" into "fas" and some icons work properly while others do not even load at all. The ones with "fa-regular" have been changed into "far" and same result.
There seems to be something weird happening when I load these icons via macros into the templates. This is what the HTML Code looks like:
So something loads - but the svg code is straight up missing. And this feels very random and I don't know what I can change to fix this..
Any idea what I can do?
Cheers!
Edit:
This sometimes appears in the browser console fwiw:
I have a template where each icon is basically a macro, for instance:
HTML:
<xf:macro name="paper">
<xf:fa icon="fa-solid fa-newspaper" />
</xf:macro>
Now, in the case of this icon, when I changed "fa-solid" to "fas", the icon loads - but for some reason it's less of a square like before and looks more like a rectangle instead. I've changed all the "fa-solid" into "fas" and some icons work properly while others do not even load at all. The ones with "fa-regular" have been changed into "far" and same result.
There seems to be something weird happening when I load these icons via macros into the templates. This is what the HTML Code looks like:
HTML:
<i data-template-name="macros_icons::community" class="fa--xf fas fa-user-group ">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="" role="img" aria-hidden="true"></svg>
</i>
So something loads - but the svg code is straight up missing. And this feels very random and I don't know what I can change to fix this..
Any idea what I can do?
Cheers!
Edit:
This sometimes appears in the browser console fwiw:
Error: <svg> attribute viewBox: Unexpected end of attribute. Expected number, "".
Last edited: