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.
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.