Support » Themes and Templates » cannot remove search field from twentytwelve child themes nav menu
3 years, 1 month ago
hi, my code in header.php is:
<nav id="site-navigation" class="main-navigation" role="navigation">
<h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
<a href="#content">"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
</nav><!-- #site-navigation -->
there is no: get_search_form in the whole file, but the search form still appears in the <nav> section as the last
in fact I do not want to remove the searchfield but to move on another place, not to appear in the navbar.
If I set no menu in the wp-admin panel at appearance – menus, the search field disappears, if I set my primary menu the search field reappears again.