Home › Forums › Front-end Issues › Append Inline SVG to Menu item › Reply To: Append Inline SVG to Menu item
Yes, in my first piece of code I was wrapping the output svg with <svg>
tags, but I’ve since changed it because I’m utilizing the svg plugin with ACF image fields, which outputs correctly. That’s why I said disregard the <img>
tags. Even if I take these <img>
tags out the acf field still appends outside of the <div>
wrappers.
In the screenshot what your seeing is the hardcoded svg output between the div
wrappers and the acf text field svg gets bumped outside of those. The <span>
tag is wrapping the text of the <a>
tag.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.