• I just updated to the latest version of my Twenty Eleven 2.3 theme, and it now has a search box in the menu that I want to remove. I doesn’t seem to be “responsive” when viewed on some hand-held devices. Sometimes it just floats over the header.
    Can anyone tell me how to remove this built in search box? Thanks.

Viewing 1 replies (of 1 total)
  • Copy over the header.php file to a child theme and remove the following code between lines 119 & 130

    <?php
    				// Has the text been hidden?
    				if ( 'blank' == get_header_textcolor() ) :
    			?>
    				<div class="only-search<?php if ( $header_image ) : ?> with-image<?php endif; ?>">
    				<?php get_search_form(); ?>
    				</div>
    			<?php
    				else :
    			?>
    				<?php get_search_form(); ?>
    			<?php endif; ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Search box in menu’ is closed to new replies.