I want to remove the search bar completely from my website. I've had a hard time trying to figure this out.
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.