Is there a way to remove the "search" function from the top navigation bar? (I wish to remove it completely).
Thanks in advance:-)
(11 posts)
(5 voices)
Is there a way to remove the "search" function from the top navigation bar? (I wish to remove it completely).
Thanks in advance:-)
Hello Millemini,
Open up /wp-content/themes/awake/header.php and at the bottom you should see this..
<div id="menu_search"></div>
<!-- tooltip element -->
<div class="tool_tip search_tooltip">
<form method="get" action="<?php bloginfo('url'); ?>/">
<p><input type="text" size="20" class="tooltip_search_field" name="s" id="s" value="Search.." onfocus="if(this.value == 'Search..') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search..';}" /></p>
<p><input type="submit" value="Search" class="tooltip_search_button" /></p>
</form>
</div>
Go ahead and comment out or delete those lines to remove the search. Let us know if this works for you.
It worked - thanks:-D
Glad it worked for you Millemini, if you have any other questions then let us know.
Hello,
I followed your recommendation here for removing the search box in the menu, but it still appears that i have the search icon in my menu, and when I hover over it, a search callout appears. My site is http://www.aitinsulation.com. Can you help?
Hello jlmartin,
I just visited your website and the code for the search box is still in your theme.
If you could provide me the login details for your website, I can remove it for you.
Hello,
I already deleted the search form from your website.
The problem was that you used the PHP comments shortcut, and it does not work for HTML. I just deleted that block of code.
I have the Awake theme. Header.php does not contain the code noted above. Perhaps that was for a different theme or older version. Any other suggestions on removing the search function in total?
Thanks.
Hello reggiethecat,
Add this line in Dashboard -> your theme -> General Settings -> Custom CSS,
#fancy_search { display: none; }
Simple! Thanks... that worked.
Your welcome, let us know if you have any other questions.
You must log in to post.