Magento 1.x. How to Add a Custom Link to Header Links

Here you can find the instructions on how to add Top Link and/or Swipe Menu link item in Magento template.
  • Create a new page. Let’s add a New page.header-link-magento-zemez

Add a custom link to the top (header) links

    • Open the app\design\frontend\default\themeXXX\layout\customer.xml file using an FTP client or File Manager in your hosting Cpanel.
    • Find a
      <reference name=”top.links”> text in Default Layout section. Add the following code:
Note, if you do not have “top.links” reference, you need to add this code.
 header-link-magento-zemez
  • Enter your label, title and url values.
  • Save your changes and open your site to check the result.

Add a custom link to the Swipe Menu

  • In order to add a new item to the Swipe Menu section (mobile layout), open the app\design\frontend\default\themeXXX\template\page\html\header.phtml file and find the following section:
  • Add the next code:
  • Save your changes and open your site to check the result.