Add and remove top links in Magento using Layout.xml - Sulopa Solutions
16283
single,single-post,postid-16283,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-5.9,wpb-js-composer js-comp-ver-4.3.4,vc_responsive

Add and remove top links in Magento using Layout.xml

22 Jul Add and remove top links in Magento using Layout.xml

Adding and Removing top links in Magento in the header section of the theme is very easy via Layout.xml files. You can add and remove top links in Magento easily. 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

‘<default><reference name=”top.links”>’

Under the ‘<reference name=”top.links”>’ 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

 

Jenny Tran
hatran260612@gmail.com
No Comments

Post A Comment