• Home
    • Privacy Policy
    • Contact
  • How to
  • Tips
  • Android
  • WordPress
  • Blogger Tips & Tricks
  • Google
  • Facebook
  • Genesis Tutorials

A New Tab

How to Remove search box wordpress Twenty Eleven



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



You might also like

  1. How to add logo to twenty eleven wordpress theme
  2. How to create child theme for Twenty Eleven WordPress theme
  3. Coming, New WordPress Default theme: Twenty Eleven
  4. How to add search box in twenty ten nav menu
  5. Customize WordPress Twenty Ten Theme
  6. How to disable right click in wordpress without any plugin
  7. Add logo to twentyten wordpress theme
Filed Under: Twenty Eleven Tagged With: Twenty Eleven

Comments

  1. Ritesh @ TechSpacia says:
    24/09/2011 at 2:21 am

    informative article. people who uses wordpress.com are highly dependent on twenty -eleven them. Thanks for sharing the knowledge.

    Reply
    • aswin says:
      24/09/2011 at 10:00 am

      Thanks Ritesh

      Reply
  2. Belinda says:
    14/10/2011 at 9:13 am

    Really helpful, thank you!

    Reply
  3. robE says:
    25/05/2012 at 9:59 am

    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.

    Reply
  4. Chief says:
    14/08/2012 at 3:01 am

    Great article! worked great! Thanks for posting. It made me feel like a real WP pro with this guidance.

    Reply

Speak Your Mind Cancel reply

*

*

Recent Articles

  • FaceBook introduced Graph Search Friends, Photos : What is it ?
  • How to terminate the account in WHM cPanel
  • How to create a new account in WHM cPanel
  • Unlock Pattern Lock Android tablet-Phone
  • Find Android Version and Update your Samsung Galaxy Tab Automatically
  • Find IMEI Number of your Samsung Galaxy Tab
  • Clean and Speed up chrome with one click

Return to top of page

Copyright © 2013 · Genesis Sample Theme on Genesis Framework · WordPress · Log in