How to custom output wp_nav_menu()

You will have to use a custom Walker for your menu. Here is the page in the codex that explains it:

https://codex.wordpress.org/Class_Reference/Walker

and here:

https://developer.wordpress.org/reference/classes/walker_nav_menu/

Hope that helps.

Leave a Comment