How to remove ul & li from wordpress custom walker?
I am trying to create a custom nav menu using walker. I haven’t used walker before so I am having issue removing ul & li and only using anchor tag directly. Is there any way to use only anchor tag for the walker?
I have used
'items_wrap' => '%3$s' in wp_nav_menu to remove the
ul and removed
li from walker in the
$output. But I don’t think that’s the optimal solution or is it?