Home Magento Customization

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)

Not happy with where your site shows up in the search engines? Our clients are on page ONE of Google for their keywords. Let us show you how we can help you too.

Related posts:

  1. Adding Links to your Top Menu
  2. Magento Vertical Category Menu
  3. Custom category menu navigation in Magento
  4. Magento Navigation, how to customize very helpful information?
  5. Tips For Creating Dynamic Category Landing Pages

2 Comments »

  • Mehedi said:

    Thanks for sharing … :)

  • E. Mendez said:

    Thanks for this. It helped me.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree

Security Code: