jonathantneal / svg4everybody

Use external SVG spritemaps today
https://jonneal.dev/svg4everybody/
Other
3.29k stars 353 forks source link

Does this work with WordPress? #176

Closed vassil-stoimenov closed 6 years ago

marcobiedermann commented 6 years ago

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

vassil-stoimenov commented 6 years ago

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

`

` 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
marcobiedermann commented 6 years ago

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