Removing WordPress default search

38 views
asked Jun 3, 2013 in Website Builder by SunFun (3,000 points)
Hi all..
I am using  Twenty Eleven theme, and currently I have the default WordPress search active on my site. But I don’t like it and I want to remove it from my website. How can I remove the default twenty eleven theme search box from my site? Can anyone please advice?
Thanks in advanced

1 Answer

0 like 0 dislike
answered Jun 3, 2013 by expert (14,380 points)
In your  header.php file look for the below code and delete it:
<?php
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; ?>

Make sure you are working on a child theme
...