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]
You could but your way is pretty efficient and much simpler. What’s the issue?