Support » Themes and Templates » Twenty Eleven – remove menu search

  • Resolved gcollett

    (@gcollett)


    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • david.bailey

    (@davidbailey-1)

    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; ?>
    gcollett

    (@gcollett)

    Thanks – I’ll give it a try.

    gcollett

    (@gcollett)

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

    nicoter

    (@nicoter)

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Twenty Eleven – remove menu search’ is closed to new replies.