I want to remove the search bar completely from my website. I've had a hard time trying to figure this out.
Rather try this easy way by putting it into local.xml in your theme layout folder
<layout> <default> <reference name="header"> <remove name="top.search"/> </reference> </default> </layout>
- Refresh your cache after saving this code.
Place a local.xml file in your template layout (e.g.
app/design/frontend/yourpackage/yourtheme/layout/local.xml) with the following content
<?xml version="1.0"?> <layout version="0.1.0"> <default> <reference name="header"> <remove name="top.search" /> </reference> </default> </layout>
If you already have a local.xml file in there, just insert the
<default> node or the
<remove> node accordingly.
It all depends on your theme, but they should all be the same. Open up the template:
Then, change the following:
<?php echo $this->getChildHtml('topSearch') ?>
<?php //echo $this->getChildHtml('topSearch') ?>
Clear caches and refresh. The search should disappear.
If you wanted to, you could disable the module completely, but i wouldn't recommend it as it will open up a whole new set of problems regarding dependancies, etc.
just open your "style.css" and find code
#header-search then add
display: none; in it or replace with
display: block; if available