Home › Forums › Front-end Issues › wp_nav_menu: span and a tags › Reply To: wp_nav_menu: span and a tags
This has nothing to do with ACF, wp_nav_menu()
is a native WP function, and according to the documentation, menu_id
must be a string; however, an ID cannot have multiple comma separated values.
Likewise, container
must be a string consisting of the (single) element name with which you want to wrap the whole menu. What you have there doesn’t make any sense.
And also likewise menu_class
must be a string that contains class names as they would be put in the HTML, i. e. space separated, not comma separated. And these class names would be put on the <ul>
that forms the menu list, as explained in the documentation, not on any single list item or whatever else is inside.
What exactly are you trying to do?
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.