How do I move the Search form from the sidebar?

Hi

I would like to move the search from the sidebar (‘ja-col1’) to the header?

Would you be able to point me in the direction of the files that control the side column?

Thanks.

2 answers

Profile photo of thangnn1510 0.00 $tone November 8, 2010
Public

Hi Daddia!

This is a hot solution for your problem:

-- Open "app/design/frontend/default/jm_deco/layout/page.xml".
+ Remove this line(line 149):

HTML Code:

<block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml" before="-" />

+ Add this code:

HTML Code:

<block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/>

to after:

HTML Code:

<block type="page/html_header" name="header" as="header">

(between line 70 and 71)

-- Open "app/design/frontend/default/jm_deco/template/page/html/header.phtml"

Add this code:

HTML Code:

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

to where you want the quick search module display.

Hope this help you.

#1

This question is now closed

Written By

Comments