Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How do I remove/disable the Search Function
 
CDA
Jr. Member
 
Total Posts:  3
Joined:  2009-02-28
 

Hello everyone,
I have a flash header up on the home page, but for ppl who dont hav flash installed for their browser, there is a search function that shows up at the top and a huge white space (where the flash would go). I find it weird coz if you do have flash, you don’t see the search box (the flash file appears over it or something).
So I’m guessing I can modify something to remove the search box but dont know how.
I searched the forums already but it seems noone else wants to know how to remove/disable the search function lol.
Any help greatly appreciated
Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
CDA
Jr. Member
 
Total Posts:  3
Joined:  2009-02-28
 

It seems that to remove the search bar you must delete this line :

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

In the file header.phtml situated in : app/design/frontend/default/default /template/page/html/header.phtml

 
Magento Community Magento Community
Magento Community
Magento Community
 
CDA
Jr. Member
 
Total Posts:  3
Joined:  2009-02-28
 

If i go into Admin --> system ---> configuration ----> advanced ---> advanced ----> mage_catalogsearch - DISABLE

- will this do the trick?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Eyes2Design
Member
 
Avatar
Total Posts:  33
Joined:  2009-02-07
Lehi, UT
 

you can Find this in catalogsearch.xml

<default>
comment out->>>>>
<!-- <reference name="header">
<block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/>
</reference>
<reference name="footer_links">
<action method="addLink" translate="label title” module="catalogsearch" ifconfig="catalog/seo/search_terms">
<label>Search Terms</label>
<url helper="catalogsearch/getSearchTermUrl" />
<title>Search Terms</title>
</action>
<action method="addLink" translate="label title” module="catalogsearch">
<label>Advanced Search</label>
<url helper="catalogsearch/getAdvancedSearchUrl" />
<title>Advanced Search</title>
</action>
</reference> -->
end<<<<<
</default>

 
Magento Community Magento Community
Magento Community
Magento Community
 
Red Table
Jr. Member
 
Total Posts:  1
Joined:  2008-09-13
 

c

 
Magento Community Magento Community
Magento Community
Magento Community
 
vikas_rao
Member
 
Total Posts:  57
Joined:  2013-10-02
 

Hi,

How to remove search box from home page in magento.

I searched in CMS>Pages>home page, no code related to search box was available.

I can remove search box in every catalog view and product view page using this link

“http://www.magentocommerce.com/boards/viewthread/38420/”.

How to remove from home page.

Thanks in Advance.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top