Magento - Change Top Link Label of existing link (login link) -
the default magento template has top link called "login". being output standard template customer.xml.
i did in local.xml, hoping remove current link "login" , readding same link different label "login / register"
<action method="removelinkbyurl"><url helper="customer/getloginurl" /></action> <action method="addlink" translate="label title" module="customer"><label>log in / register</label><url helper="customer/getloginurl"/><title>log in</title><prepare/><urlparams/><position>100</position></action>
however have 2 links there displaying, 1 called "login" , called "login / register".
how can change label of toplink in magento?
try remove
<default> <reference name="top.links"> <action method="removelinkbyurl"> <url helper="customer/getaccounturl"/> </action> </reference> </default>
add
<reference name="top.links"> <action method="addlink" translate="label title"> <label>log in / register</label> <url helper="customer/getloginurl"/> <prepare/> <urlparams/> </action> </reference>
Comments
Post a Comment