- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
Magento. How to add “Home” link to Magento top menu
July 26, 2016
The following guide will refer to top menu links management in Magento themes, specifically it is going to show what should be done to add a ‘Home’ link to the main menu.
First it would be necessary to log into the cPanel file manager or FTP;
The file can be both edited either directly on server using the file manager in-built editor or downloaded and edited locally with an editor;
It is always highly recommended to keep the original file prior to applying any changes;
Following the app/design/frontend/tm_themes/themeXXX/template/page/html path, open the header.phtml file to edit it;
-
At the bottom of the file, around lines 98-99, right after the main header nav ID, add the following piece of code:
Update the file and re-upload it back to server;
It’s recommended to clear Magento cache after this has been done.
Note: some minor CSS tweaks might be required to give new link a position relative to the main navigation menu.
Feel free to check the detailed video tutorial below:
Magento. How to add “Home” link to Magento top menu