It's pretty easy to add some types of links to top menu using this method:
http://www.magentocommerce.com/knowledge-base/entry/adding-page-links-in-the-navigation-bar
But I cannot figure out how to add a simple home page link. The above method does not seem to work. It seems that the method requires some type of URL, and if it's left blank or a "/" is used, Magento makes up a link that does not work.
I have custom theme, based on the RWD theme, with a local.xml
file. I have tried to add code suggested from various websites, to add a new top link, but the code seems to not work for Magento 1.9.
I have been experimenting with the renderer.phtml
file in my theme, with no luck.
Any suggestions for adding a link in the top links of Magento 1.9, especially a home page link?
Best Answer
First copy topmenu.phtml from
Save this file as topmenu.phtml to
Edit this file within lines 38-40, paste the following:
To create:
Save and re-upload this file.
Create a
CMS > Static Block
, named home-link enter the following into your block (Hide Editor, as needed):Note: I leave all of the class names consistent with 1.9. Feel free to adjust class names as needed.
Save your new Static Block.
Create a
CMS > Static Block
, named post-menu-links Enter the following into your block (Hide Editor, as needed):Save your new Static Block.
Be sure to clear the cache and refresh your browser.