I am changing
wp_nav_menu() to make it a listless navigation menu (i.e., no unordered list or list item tags) Normally the menu
<li> has the
.current-menu-item class attached to it when active. But is there a way to give it to the anchor instead?
$menuParameters = array( 'container' => false, 'echo' => false, 'items_wrap' => '%3$s', 'depth' => 0, ); echo strip_tags(wp_nav_menu( $menuParameters ), '<a>' );