Generally people dont use the search bar that comes along with default wordpress installtion. If you are monetizing from your blog instead of using that default search bar, if you use Google search bar then it will helpful in better monetizing. As we told in our earlier posts twenty eleven is a beautiful, fast loading and first HTML5 theme for WordPress.
It is better to create a child theme before you starting doing modifications to your existing theme. If you dont know how to create a child theme you can read our article how to create a child theme for wordperss twenty eleven. If you are also looking for how to add logo to wordpress twenty eleven you can read our article. Let us see how to remove search bar from wordpress twenty eleven theme.
Remove search bar from twenty eleven theme
#1. Login to Dashboard
#2. Go to Appearance – > Editor
#3. Open header.php file ( If you are using concept of child theme, copy this file to your child theme folder and edit it )
#4. remove the below part of code
<?php if ( 'blank' == get_header_textcolor() ) : ?> <div> <?php get_search_form(); ?> </div> <?php else : ?> <?php get_search_form(); ?> <?php endif; ?>
#5. Save it.
Check your blog. Now your search bar will be deleted, Feel Free to ask any questions