Created
February 28, 2014 18:15
-
-
Save rickbenetti/9276575 to your computer and use it in GitHub Desktop.
Remove links from Top.Links menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<layout version="0.1.0"> | |
<default> | |
<!-- Top links (user menu) ====================================================================== --> | |
<reference name="top.links"> | |
<!-- Remove cart, checkout and wishlist top links --> | |
<remove name="checkout_cart_link" /> | |
<remove name="wishlist_link" /> | |
<!-- Remove my account top links --> | |
<action method="removeLinkByUrl"><url helper="customer/getAccountUrl"/></action> | |
</reference> | |
</default> | |
<!-- getting rid of login logout links in top .links --> | |
<customer_logged_in> | |
<reference name="top.links"> | |
<action method="removeLinkByUrl"><url helper="customer/getLogoutUrl"/></action> | |
</reference> | |
</customer_logged_in> | |
<customer_logged_out> | |
<reference name="top.links"> | |
<action method="removeLinkByUrl"><url helper="customer/getLoginUrl"/></action> | |
</reference> | |
</customer_logged_out> | |
</layout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment