How can I add a custom < li>-element to wp_nav_menu()? My menu includes already all my categories, but it should also include a < li>-element that contains a search form.
<nav> <?php $args = array( 'theme_location' => 'nav_main' ); wp_nav_menu($args); ?> <?php get_search_form(); ?> </nav>
This is how it looks now:
This is how it should look: