Insert svg into Widget Content

I installed SVG Support plugin. I have a .svg file with svg icons(symbols). I want to import these icons into Content of a Widget.

If I open Dashboard -> Appearance -> Widgets -> [Shapely] Parralax Section -> Content, I can import svg file by

<img class="style-svg" alt="alt-text" src="wp-content/themes/shapely/assets/images/icons.svg" />

and all my icons are in html body.

If I try to import specific icon by tag and save changes, svg tag is removed from Widget Content.

How can I import a svg icon from svg sprite file?

Read more here: Insert svg into Widget Content

Leave a Reply

Your email address will not be published. Required fields are marked *