Support

Account

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?