- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
Magento. How to add a custom link to header links
April 20, 2015
In this tutorial you will learn how to add Top Link and/or Swipe Menu link item in Magento template(s).
Magento. How to add a custom link to header links
-
Create a new page if you have not done it yet. In our example, we will add a new page and name it New with URL KEY new:
-
Open app\design\frontend\default\themeXXX\layout\customer.xml file using an FTP client or File Manager in your hosting Cpanel.
-
Find a
in Default Layout section. Add the following code to add new item:
new
New 60 -
Note that if you do not have "top.links" reference, you need to add it:
new
New 60
-
Check your label, title and url values.
-
Save your changes and open your site to check the result:
-
In order to add a new item to the Swipe Menu section (mobile layout), open app\design\frontend\default\themeXXX\template\page\html\header.phtml file and locate the following section: