Magento – Search or Quick Search in the header removed / delete

Picture

Who, for example, only one product on the page, may have no real use for a Search. These can be removed with a code change from the header.

For this purpose, the file header.phtml in the folder

/app / design / frontend /[base or default]/IhrTemplate/template/page/html

open and there about. in line 38 the range

 

<?php echo $this->getChildHtml('topSearch') ?>

 

deleted or by <!– and –> excluded. So it might look like then

 

<!--<?php echo $this->getChildHtml('topSearch') ?>-->

 

Save and should already be tested free of the new header.

Of course, it may be, that the Header area slightly shifts, which can then counter with a few changes in the CSS castable.

Used in 1.4.1.1

Another option would be to find not only allow loading (Although currently it is loaded from the store but not displayed). This must then be made on the appropriate XML file in the folder of the template layout.

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

One comment on “Magento – Search or Quick Search in the header removed / delete”

  1. Is a better way, To remove the search on the local.xml.
    Create and embed code local.xml

    topSearch

    Best Regards

Leave a Reply

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