You can add a new link in header along with my account,my cart,login.To add a new custom link along with this you have to do as following:
Step 1:
Create CMS Page that you want to open from the header link.
For example,i want to open About us page,then go to Magento Admin.
Magento Admin>CMS >Pages>Add New Page>("Fill the info related to Page.i.e.about us")>Save Page.
Step 2:
Go to:
\app\design\frontend\base\default\layout\customer.xml
add a new default reference in <!-- Default layout, loads most of the pages --> section.
for example,i want to add a new page as about us
<default>
<reference name="top.links">
<action method="addLink" translate="label title" module="customer">
<label>About us</label>
<url>about-us</url>
<title>About us</title>
<prepare>true</prepare>
<urlParams />
<position>10</position>
</action>
</reference>
</default>
Thus,you can add a custom link in top header links and open new custom page too.
Step 1:
Create CMS Page that you want to open from the header link.
For example,i want to open About us page,then go to Magento Admin.
Magento Admin>CMS >Pages>Add New Page>("Fill the info related to Page.i.e.about us")>Save Page.
Step 2:
Go to:
\app\design\frontend\base\default\layout\customer.xml
add a new default reference in <!-- Default layout, loads most of the pages --> section.
for example,i want to add a new page as about us
<default>
<reference name="top.links">
<action method="addLink" translate="label title" module="customer">
<label>About us</label>
<url>about-us</url>
<title>About us</title>
<prepare>true</prepare>
<urlParams />
<position>10</position>
</action>
</reference>
</default>
Thus,you can add a custom link in top header links and open new custom page too.
No comments:
Post a Comment