I placed a search into the secondary menu but for some reason it also added a search to the topbar…2 search bars! ??
So someone gave me the code to hide that one. I wish I could just add a search bar to the secondary menu ONLY.
add_filter( 'wp_nav_menu_items','add_search_box', 10, 2 );
function add_search_box( $items, $args ) {
$items .= '<li>' . get_search_form( false ) . '</li>';
return $items;
}
If you can tell me what to do with the above so it only manifests on the secondary menu, that would be great. Then i can remove the css that hides the search at topbar.