How to remove ul & li from wordpress custom walker?

Question

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?

0
Manish Shah 1 month 2022-08-23T20:55:06-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse