How To Remove Search Box in Nav Menu of Twenty Thirteen Theme

Recently i have shifted to WordPress Twenty Thirteen Theme. Its an excellent theme with Fully responsive and Retina display. I am going through customization of Twenty Thirteen Theme. Here is a way to disable Search Box in the Nav Menu. I would rather prefer to use Google custom search box in the Sidebar Widget. I will later show you how to add Google custom search box. You can always revert back to search bar in nav menu. See below how:

How To Remove Search Box in Nav Menu

You will need to edit the Header.php file in order to remove the Search box in nav menu. But when you will update the theme, it will be gone. I mean you have to do it again.

Go to Dashboard. Then Select Appearance. Next Select  Editor and Click on header.php file from right side.
You will find a code like <?php get_search_form(); ?>
Just remove this line.
OR Add “//” between php and get. So it will look like this “<?php //get_search_form(); ?>”.
Then Update the files. The Search box is vanished.
Remove Search Bar from Twenty Thirteen Theme

How to get back the Search box in Nav Menu?

Just remove the added “//” from that line.

If you happen to know more customization tips, let me know. I am very eager to learn new things specially with The Twenty Thirteen Theme

Thanks.

Check Also

How To Add Floating Social Share Buttons In Blogspot WordPress Site

Social media is one of the best way to earn more visitor to your site …

One comment

  1. The Tuto is one again! If you continuously work for “Twenty Thirteen Theme”, you find simplicity is the best!

Leave a Reply

Your email address will not be published. Required fields are marked *

*