2. Magento. How to add “Home” link to Magento top menu
1 min read- 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:
12<a href=”<?php echo $this->getUrl(”) ?>” class=”link_home”><span class=”fa fa-home”></span></a>
- 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.