Moving Magento Advanced Search Link From Footer To Beneath Search Bar

Moving Magento Advanced Search Link From Footer To Beneath Search Bar

August 12, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Moving Magento Advanced Search Link From Footer To Beneath Search Bar

Moving Magento Advanced Search Link from Footer to Beneath Search Bar

Are you looking to relocate your Magento advanced search link? By default, this link is placed within the footer links section via catalogsearch.xml layout file in your Magento installation. However, moving it under the search bar requires a few key modifications.

Let’s break down this process into clear steps:

Step 1: Understanding the Current Structure

The advanced search link is created through the “footer_links” block in your layout/catalogsearch.xml file. This reference name is then pulled and displayed using getChildHtml('footer_links') in your footer.phtml template.

<referenceContainer name="footer-container">
    <block type="catalogsearch/layer_view" before="-" template="catalogsearch/layer/view.phtml"/>
    <block type="core/text_list" name="footer_links" as="footer_links"/>
</referenceContainer>

The search bar itself is rendered using a different reference name (“top.menu”) in the same layout file. This references the template/catalogsearch/form.mini.phtml template.

<referenceBlock name="catalog.topnav">
    <block type="core/template" name="form.mini" template="catalogsearch/form.mini.phtml"/>
</referenceBlock>

Step 2: Creating a New Reference Block

To achieve your goal, we need to create a new block that will serve as the container for both the search bar and the advanced search link. Let’s call this new block “top.search”.

In your layout/catalogsearch.xml file, add the following code within the <default> tag:

<referenceContainer name="catalog.topnav">
    <block type="core/text_list" name="top.search" as="top.search"/>
</referenceContainer>

Step 3: Moving the Search Bar

Next, we move the search bar from its original reference block to our new “top.search” container.

Replace this line in catalogsearch.xml:

<block type="core/template" name="form.mini" template="catalogsearch/form.mini.phtml"/>

With these lines:

<block type="core/template" name="form.mini" as="mini_search_form" template="catalogsearch/form.mini.phtml">
    <action method="setParentBlockName"><name>top.search</name></action>
</block>

Step 4: Migrating the Advanced Search Link

Now, let’s move the advanced search link from “footer_links” to our new container.

Replace this line in catalogsearch.xml:

<block type="core/text_list" name="footer_links" as="footer_links"/>

With these lines:

<block type="catalogsearch/layer_view" template="catalogsearch/layer/view.phtml">
    <action method="setParentBlockName"><name>top.search</name></action>
</block>

Step 5: Applying the Changes

After making these modifications, clear your Magento cache and refresh your storefront. You should now see your advanced search link positioned right beneath the search bar.

For a more detailed guide on customizing your Magento layout and templates, I recommend checking out our comprehensive tutorial series at Laravel Company.

Remember to always backup your files before making such changes. If you’re unsure about any part of this process or encounter issues, feel free to consult with a Magento certified developer.

By following these steps and understanding the underlying layout structure, you can easily relocate your advanced search link from the footer to its new position under the search bar in your Magento installation.

Happy coding!

Catalog Themes

Our network