search
top

Custom Footer Links Magento

Hello All,

When we install Magento, we can see that we have two rows in footer links (theme – default).

We can edit the links in the top row from CMS block with title ‘Footer Links’.

The links in the second row cannot be edited directly, they come from the XML files.

I am writing here the code for adding custom links in the second row.

Below code to be written in app/design/frontend/[your_package]/[your_theme]/layout/local.xml (or page.xml if you do not have local.xml)


<layout>

	<default>

	<!-- below code for links -->

        <!--start-->

      	<reference name="footer_links">

      		<action method="addLink" translate="label title">

                <label>About Us</label>

                <url>about-us</url>

                <title>About Us</title>

                <prepare>true</prepare>

            </action>  

            <action method="addLink" translate="label title">

                <label>Home</label>

                <url>home</url>

                <title>Home</title>

                <prepare>true</prepare>

            </action>           

        </reference>

        <!--end-->

	</default>    

</layout>

Hope this is useful

2 Responses to “Custom Footer Links Magento”

  1. kea says:

    thank it works.

  2. Chris Moore says:

    This was exactly what i was looking for. thank you.

Leave a Reply

top