jonathantneal / svg4everybody

Use external SVG spritemaps today

Home Page:https://jonneal.dev/svg4everybody/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does this work with WordPress?

vassil-stoimenov opened this issue · comments

Of course it does. This is not related to any framework or CMS.
You just have to prepare your SVGs properly and include them in the way described in usage

I just can't get it to work. I added this in my external java field:

`<script src="/path/to/svg4everybody.js"></script>

<script>svg4everybody(); </script>`

In addition, I formatted my svg file, like the "map.svg" example. But then, when I use I just end up with some white space.

I also tried naming the svg, inline-map.svg.php, which i saw from someone online, who used the get_template_part function to load svgs, but that also didn't work

Do you have a link to your website or the repo / source code?