0

How can I move the advanced search into the left sidebar of my homepage? No one seems to have been able to give me an answer so far and I would really like to know how this can be done. Thankyou

2

Use following code in local.xml to move advanced search to left side bar on home page.

<?xml version="1.0"?>
<layout version="0.1.0">
    <cms_index_index>
        <reference name="left">
            <block type="catalogsearch/advanced_form" name="catalogsearch_advanced_form" template="catalogsearch/advanced/form.phtml"/>
        </reference>
    </cms_index_index>
</layout>

Hope this helps

  • Into the local.xml? – Oli Tuck Mar 22 '16 at 12:08
  • 1
    Yes. you can put it in local.xml – Rohit Kundale Mar 22 '16 at 12:09
  • It made it appear on the homepage. But now at the top there is breadcrumbs which say 'home/catalog advanced search' which I wouldn't like to happen and also when you search it just goes to 404 page not found – Oli Tuck Mar 22 '16 at 12:11
  • Copy catalogsearch/advanced/form.phtml file in to your theme. and modify as per your requirements. – Rohit Kundale Mar 22 '16 at 12:13
  • It is in my theme and it is identical to the original, the search isn't working – Oli Tuck Mar 22 '16 at 12:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.