In my Magento install, I have a dropdown menu that is generated from a Products category in my ‘Categories’.
It uses the code:
<?php echo $this->getChildHtml('topMenu') ?>
to display the menu.
However, at certain intervals, I’d like to add a static HTML link (list item with hyperlink) in to the menu.
How do I achieve this?
Many thanks for any pointers
In the current version of Magento you can do this by creating a new category then redirecting that category to any URL you want (CMS page, Product page, offsite, etc.)
You should now be able to go to the Frontend and see the new category in the menu. Clicking on it will redirect you straight to the link you provided. I prefer this method over others because it gives you better control over where a static link gets placed and allows you to put a staticly linked menu item within sub-menus.
This video shows this technique step-by-step for Magento Go but the process is the same for all flavors of Magento. http://www.youtube.com/watch?v=5rSIQlRC8Xk
Here is your answer: http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/navigation/add_home_link_to_menu_bar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With