April 1, 2021 at 12:28 pm
Hi!
How can I add icons in a html header module? When I try it’s just stripped out and not displayed.
It works in widgets though when I insert the same icon, see below.
<svg style="display: inline-block; vertical-align: middle;" viewbox="0 0 512 512" height="14" width="14" fill="currentColor" xmlns="*Login to see link d="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"></path></svg>
Is there some easier way to insert icons or am I doing the correct way in widgets?
Thanks!
Ben
-
This topic was modified 5 years ago by
Ben Andersen. Reason: corrected viewBox, the widget parser complains if it's viewBox and not viewbox. Maybe something that should be changed in the infobox block where I copied it from?