Adding Links to Magento Menu Bar
26 July 2009
2 Comments
Look for the top.phtml corresponding to your menu.
You can find the top.phtml files using SSH shell with this command.
Come to the app/ folder
find -name top.phtml
./design/frontend/default/iphone/template/catalog/navigation/top.phtml ./design/frontend/default/default/template/catalog/navigation/top.phtml ./design/frontend/default/blank/template/catalog/navigation/top.phtml ./design/frontend/default/modern/template/catalog/navigation/top.phtml
From above you should be able to locate your themes top.phtml
now edit the top.phtml
nano design/frontend/default/modern/template/catalog/navigation/top.phtml
<ul id=”nav”> <li><a href=”<?php echo $this->getUrl(”)?>”><?php echo $this->__(’Home’) ?></a></li> <?php foreach ($this->getStoreCategories() as $_category): ?> <?php echo $this->drawItem($_category) ?> <?php endforeach ?> <li><a href=”<?php echo $this->getUrl(’about-magento-demo-store’)?>”><?php echo $this->__(’About Us’) ?></a></li> </ul>
I have added two links “Home” and “About Us” in the above code (colored yellow)
–
Related posts:

Thanks for sharing …
Thanks for this. It helped me.
Leave your response!
Support
Latest Project
Our Work
Popular Tags
Recent Comments