in a CPT-loop I am trying to insert an SVG from the WP media gallery. BUT it has to be inserted inline (no src possible, to be able to manipulate the SVG).
Question: Using MB, is there any simple way to "transform" and output the inline string of a "single_image"?
Media Galery Example ID=xyz looks like this:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.84 10.2L14.83.........." /></svg>
I am looking to output something like this on a page:
<svg class="xxx" id="svg-sitemap" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.84 10.2L14.83.........."></path></svg>
I would like to use this function.
But unfortunately, this is not possible in certain situations ;-(
That's the reason why I am asking - I think it would bring MB also a benefit, without much effort...