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
informative article. people who uses wordpress.com are highly dependent on twenty -eleven them. Thanks for sharing the knowledge.
Thanks Ritesh
Really helpful, thank you!
Hi, I’m rather new to WordPress. I wish to eliminate the search bar. I’ve created a child-theme for 2011, I’ve copied the header.php file to the editor area of the child-theme. I’ve searched and searched the code and connote seem to find the piece of code you cite above to remove. Don’t know if thats enough information to figure out where I’m going wrong but any assistance would be appreciated, thanks very much.
Great article! worked great! Thanks for posting. It made me feel like a real WP pro with this guidance.