How to change the page of search results from 3 to 1 columns in magento?

I need to change the layout of the catalog 3 search result page from layout 1 column. I tried in catalogsearch.xml but did not get the correct result. Can someone tell me how can I fix this?

Thanks.

+4
source share
2 answers

Changing the layout in catalogsearch.xml should be done as follows:

Before:

<action method="setTemplate"><template>page/3columns.phtml</template></action> 

After:

 <action method="setTemplate"><template>page/1column.phtml</template></action> 

You should also clear your Magento Cache in admin> System> Cache Management.

Hope this helps.

+5
source

Or you can copy this in local.xml:

  <catalogsearch_result_index> <reference name="root"> <action method="setTemplate"><template>page/1column.phtml</template></action> </reference> </catalogsearch_result_index> 
+5
source

Source: https://habr.com/ru/post/1496284/


All Articles