Is it possible to add a custom <li> at the end of the navigation?

[ad_1]

Hi,

I would like to add a search button at the end of my navigation. Right now I use a second <ul> at the end, but I would like to know if I can add the <li> directly at the end of the navigation?

My code right now

<!– MENU –>
<?php
wp_nav_menu(array(
‘theme_location’ => ‘primary’, // menu name
‘menu’ => ‘primary’, // menu name
‘container’ => ”, //Remove container div
‘menu_id’ => false,
‘menu_class’ => ‘nav’, //ul class
‘walker’ => new PG_Smart_Walker_Nav_Menu()
));?>
<!– SEARCH BAR / SOCIAL –>
<ul class=”misc-items”>
<li class=”misc-items”>
<i class=”search-icons fas fa-search”></i>
</li>
</ul>

Thank you

[ad_2]
1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer