Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to edit the Magento Top Links in a specific way and only need to show three links in below order

Login  Register  Cart

This would result in following

  1. Remove only Checkout Link and not Cart Link
  2. Remove My account Link and add Register Link instead
  3. Rename My Cart to Cart

How can I achieve this ?

Please Guide.

Thanks !!!

share|improve this question
How can I do it using top.links.phtml ? – Mark Apr 10 '14 at 5:16

you can modify it by edit reference name="top.links" block in following .xml files

 1. app/design/frontend/Your_theme/default/layout/checkout.xml 
 2. app/design/frontend/Your_theme/default/layout/customer.xml

Check this following post

How to edit header links?

You can get more idea from here

share|improve this answer
yeah. Its my answer! Its only suggestion for you! – DRAJI Apr 10 '14 at 6:00
Mark, this is not constructive. What did you do? What is the problem? What did you expect to happen. And please edit the question to add more information and DON'T write a unreadable comment. Thanks! – Fabian Blechschmidt Apr 10 '14 at 6:04

You can also remove some of the top links in your local.xml by referencing them and removing them by name.

<reference name="top.links">
   <remove name="wishlist_link"/>
   <remove name="checkout_cart_link"/>

This only work if the top link was created with a name like this:

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

For the log in and log out, since they aren't called with a "name", you can't remove it this way.

share|improve this answer

You can use

   <!-- Removes 'Log Out' link-->

   <reference name="top.links">
      <action method="removeLinkByUrl"><url helper="customer/getLogoutUrl"/>     </action>


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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