cannot remove search field from twentytwelve child themes nav menu (2 posts)

  1. vajnabotond
    Posted 2 years 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
    <li> element.

    in fact I do not want to remove the searchfield but to move on another place, not to appear in the navbar.

    thank you

  2. vajnabotond
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic