Edit Magento Header Links

Edit Magento Header Links
Facebooktwitterredditpinterestlinkedinmail

To edit header links please locate the layout xml files in you theme or the xml file is not found on the theme layout folder you can find the file in base layout folder.

ie.

“app/design/frontend/base/default/layout”

My Account
Open customer.xml file and find the below mentioned code.

<default>
    <!-- Mage_Customer -->
    <reference name="top.links">
        <action method="addLink" translate="label title" module="customer"><label>My Account</label><url helper="customer/getAccountUrl"/><title>My Account</title><prepare/><urlParams/><position>10</position></action>
    </reference>
</default>

Log In
Open customer.xml file and find the below mentioned code.

<reference name="top.links">
    <action method="addLink" translate="label title" module="customer"><label>Log In</label><url helper="customer/getLoginUrl"/><title>Log In</title><prepare/><urlParams/><position>100</position></action>
</reference>

Log Out
Open customer.xml file and find the below mentioned code.

<reference name="top.links">
    <action method="addLink" translate="label title" module="customer"><label>Log Out</label><url helper="customer/getLogoutUrl"/><title>Log Out</title><prepare/><urlParams/><position>100</position></action>
</reference>

My Whishlist
Open customer.xml file and find the below mentioned code.

<reference name="top.links">
    <block type="wishlist/links" name="wishlist_link"/>
    <action method="addLinkBlock"><blockName>wishlist_link</blockName></action>
</reference>

My Cart and Checkout
Open checkout.xml file and find the below mentioned code.

<reference name="top.links">
    <block type="checkout/links" name="checkout_cart_link">
        <action method="addCartLink"></action>
        <action method="addCheckoutLink"></action>
    </block>
</reference>
Facebooktwitterredditpinterestlinkedinmail