Written by Steve Perry
Published on

How to remove the Magento footer links with XML

I’ve searched around for a clean solution for this and I kept on finding articles advising to just comment out the lines in the XML files. This is not ideal as I personally like to make my XML changes in a local.xml file. So here’s how I removed the standard footer links in Magento using just my local.xml file.

<default>
    <reference name="footer_links">
        <action method="removeLinkByUrl"><url helper="catalog/map/getCategoryUrl" /></action>
        <action method="removeLinkByUrl"><url helper="catalogsearch/getSearchTermUrl" /></action>
        <action method="removeLinkByUrl"><url helper="catalogsearch/getAdvancedSearchUrl" /></action>
        <action method="removeLinkBlock"><blockname>return_link</blockname></action>
    </reference>
</default>

The only link that I could not remove this way was the Contact link. You can use the above method by removing the link by URL but as I simply wanted to move it to another location this was not suitable. For now I have duplicated my contact.xml file and made the changes in there. If you have a better way then do let me know.

Steve Perry Creative Ltd

Studio and registered office: 4 Back Lane, Brown Edge, Staffordshire ST6 8QS.

Copyright © 2012 – 2023 Steve Perry Creative Ltd., unless otherwise noted.

Registered in England & Wales, number 08354632.

Colophon

Typeset in Söhne Kräftig and Söhne Buch, by Klim Type Co.

Set as 32/64, 24/32, 20/32, and 12/16 on an 8px/96px grid.

Colour palette selected for AAA contrast.