OK it should have read
(e.g. <a xlink:href="http://www.google.com" target="_blank"><path.../><a/>)
Hi,
Thanks for your support using my plugin 🙂
It sure does support this.
Here is an example of how my links are formatted:
(you can disregard the class, id & target, but you will see that I have some extra data in there… that could be the issue. I used Illustrator to create that SVG and embed the links, then SVG cleaner to remove extraneous mess).
<a class="hex-slice" id="instagram" target="_blank" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://instagram.com/mrbillstunes">
You can see the SVG where this is used in the footer of http://mrbillstunes.com/.
Cheers
Ben
Thanks for your help, and for the plugin, it’s great!
I think I’ve hit on the problem. I’m using WP Bakery page builder which writes the SVG into the page code using <img>. I understand this element doesn’t cater for interactivity and its better to use <object> or <embed>. I wonder, which do you use and how?
Thanks a lot.
The way my plugin works, you use the <img> tag and add (default, but you can change the class name in the plugin settings) the class="style-svg".
Example:
<img src="your-svg-url.svg" class="style-svg" />
Then it will automatically render the SVG content, replacing the img tag.
I hope that helps.
That’s really great. Thank you very much for your help!
My pleasure, glad to help 🙂
There’s a ‘drink’ on its way.
Haha, so there is, thank you very much!
i really appreciate that 😀