Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14625 reviews 1734 hosting providers

Questions & Answers

Removing WordPress default search

Jun 3, 2013 by SunFun
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 votes
Jun 3, 2013 by expert
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