Removing or Adding top links in the header section of the theme is
very easy via Layout.xml files. However we need to edit multiple files
to accomplish this task like wishlist.xml, customer.xml, checkout.xml
etc.
1. To Remove Wishlist link from top links
—————————————————————————–
Open the file /app/design/frontend/package/theme/layout/wishlist.xml and find the lines given below, simply comment these lines to remove the wishlist link.
2. To remove My Account link
—————————————————————————————
Open the file /app/design/frontend/package/theme/layout/customer.xml and find the lines and comment these lines.
3. Add Home Link in top menu
—————————————————————————————-
Open the file /app/design/frontend/package/theme/layout/customer.xml and search the line
‘’
Under the ‘’ add these lines.
4. To Remove or Add Checkout and My Cart link in top menu
———————————————————————————————
To show or hide the Checkout and My Cart link in the top links just comment or un-comment these lines in /app/design/frontend/package/theme/layout/checkout.xml file.
1. To Remove Wishlist link from top links
—————————————————————————–
Open the file /app/design/frontend/package/theme/layout/wishlist.xml and find the lines given below, simply comment these lines to remove the wishlist link.
1
2
3
4
5
6
| <!-- <reference name= "top.links" > <block type= "wishlist/links" name= "wishlist_link" /> <action method= "addLinkBlock" ><blockName>wishlist_link</blockName></action> </reference> --> |
—————————————————————————————
Open the file /app/design/frontend/package/theme/layout/customer.xml and find the lines and comment these lines.
1
2
3
| <!--<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> --> |
—————————————————————————————-
Open the file /app/design/frontend/package/theme/layout/customer.xml and search the line
‘’
Under the ‘’ add these lines.
1
| <action method= "addLink" translate= "label title" module= "customer" > <label>Home</label><url helper= "core/url/getHomeUrl" /><title>Home</title><prepare/><urlParams/> <position>10</position> </action> |
———————————————————————————————
To show or hide the Checkout and My Cart link in the top links just comment or un-comment these lines in /app/design/frontend/package/theme/layout/checkout.xml file.
1
2
3
4
5
6
| <?php //My Cart link <action method= "addCartLink" ></action> //Checkout link <action method= "addCheckoutLink" ></action> ?> |
No comments:
Post a Comment