How do i completely remove/disable top-links-container from the header?
2 Answers
You can write this code in your theme local.xml
file
located app/design/fronend/YourPackage/YourTheme/layout/local.xml
<default>
<reference name="header">
<remove name="top.links">
</reference>
</default>
-
thanks. it's gone but messes up the website. Tried to put in all the code you gave me or only the <remove name="top.links"> and added that in the header section of the local.xml– bramvdsCommented Dec 15, 2016 at 12:17
-
-
really i did. but i the website looks like this after that: postimg.org/image/m054lz3sn– bramvdsCommented Dec 15, 2016 at 12:28
Add below code in your local.xml :
<default>
<reference name="header">
<remove name="top.links"/>
</reference>
</default>
if you want to remove the particular link:
- Customer links: app\design\frontend\rwd\yourtheme\layout\customer.xml
comment below code :
<!--<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>-->
2. Wishlist Link: app\design\frontend\rwd\yourtheme\layout\wishlist.xml
Comment code :
<!--<reference name="top.links">
<block type="wishlist/links" name="wishlist_link" />
<action method="addLinkBlock"><blockName>wishlist_link</blockName></action>
</reference>-->
- Cart & Checkout Link : app\design\frontend\rwd\yourtheme\layout\
Comment code :
<!--<reference name="top.links">
<block type="checkout/links" name="checkout_cart_link">
<action method="addCartLink"></action>
<action method="addCheckoutLink"></action>
</block>
</reference> –->