WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Twenty Eleven - remove menu search (5 posts)

  1. gcollett
    Member
    Posted 2 years ago #

    I need more space in my menu so I'd like to remove the search box in the menu. Can anyone tell me how to do that please.

    Thanks in advance.

    Greg

  2. david.bailey
    Member
    Posted 2 years ago #

    The only search box I found was in the header. Try removing this conditional statement from the header.php file -

    <?php
    	// Has the text been hidden?
    	if ( 'blank' == get_header_textcolor() ) :
    	?>
    	<div class="only-search<?php if ( ! empty( $header_image ) ) : ?> with-image<?php endif; ?>">
    	<?php get_search_form(); ?>
    	</div>
    	<?php
    	else :
    	?>
    	<?php get_search_form(); ?>
    	<?php endif; ?>
  3. gcollett
    Member
    Posted 2 years ago #

    Thanks - I'll give it a try.

  4. gcollett
    Member
    Posted 2 years ago #

    Yea - worked perfectly - Thanks David - I really appreciate your help.

  5. nicoter
    Member
    Posted 1 year ago #

    Using the plugin "Twenty Eleven Theme Extensions" I was able to over write the CSS:

    #branding #searchform {
    	display:none;
    }
    #branding .only-search + #access div {
    	padding-right: 0px;
    }

    This solution is also upgrade safe.

    HTH

Topic Closed

This topic has been closed to new replies.

About this Topic