Take the 2-minute tour ×
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It's 100% free, no registration required.

As per my requirement in current project i need to place custom menu which should have general pages as menu items like Home,About Us etc but in basically we get categories as nav-menu in magento so how to do this.

share|improve this question
    
what theme do you use? –  dh47 Dec 22 '14 at 9:41
    
I use RWD theme –  Abdul Dec 22 '14 at 9:41

3 Answers 3

up vote 1 down vote accepted

Goto app/design/frontend/rwd/default/template/page/html and open topmenu.phtml file. find this code

<?php if($_menu): ?>
    <nav id="nav">
        <ol class="nav-primary">
            <?php echo $_menu ?>
        </ol>
    </nav>
<?php endif ?>

this code will output you the categories in the form of top menu if you don't use any categories hide this code or else paste this code before or after this code.

<ul>
            <li><a href="<?php echo Mage::getBaseUrl(); ?>">HOME</a></li>
            <li><a href="<?php echo Mage::getBaseUrl(); ?>aboutus">ABOUT US</a></li>
            <li><a href="<?php echo Mage::getBaseUrl(); ?>your_page_uri">your_page_name</a></li>
            <li><a href="<?php echo Mage::getBaseUrl(); ?>your_page_uri">your_page_name</a></li>

</ul>
share|improve this answer

Another way to do it would be to use Observer page_block_html_topmenu_gethtml_before and then you can alter the menu in the way magento is doing it itself. For more information on that, like how to build up a real structure you can take a look here: http://inchoo.net/ecommerce/adding-links-to-the-top-menu-in-magento/

share|improve this answer
    
thanks for the answer but the above answer looks easier :) –  Abdul Dec 22 '14 at 10:04

You can also have both....

Just create 1 category which will be shown in the navigation with all your product-categories below. (so it will be 1 pull down entry in your menu) Afterwards create different extra main categories (Home, About Us etc etc) and put in your .htaccess file a 301 redirect so if the menu wants them to be directed to the (empty) category About Us it will redirect them to the /aboutus CMS page.

I think this redirection is a main requirement for almost all shops.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.