Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to add About Us link to the main menu
 
autodefrost
Jr. Member
 
Total Posts:  9
Joined:  2011-04-06
 

How do you add a link, like About Us, to the main navigation?

Ex: Add About Us to the bar with \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\’Furniture, Electronics, Ebooks, etc...\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\’
http://demo.magentocommerce.com/about-magento-demo-store

 
Magento Community Magento Community
Magento Community
Magento Community
 
zee_shan987
Jr. Member
 
Total Posts:  7
Joined:  2010-10-22
 

Hello autodefrost,

you can add this code in your top navigation: app/design/frontend/default/Your Theme/template/catalog/navigation

<li class=\"home <?php echo !$_anyActive ? \'active\' : \'\' ?>\"><a href=\"<?php echo $this->getUrl(\'\')?>ABOUT US\"><span><?php echo $this->__(\'aboutus\'?></span></a></li>

i have add this code below as a example....

<?php $_menu $this->renderCategoriesMenuHtml(0,'level-top'?>
<?php 
if($_menu): ?>
<div class="nav-container">
    <
ul id="nav">
        <
li class="home nav-1"><a href="/"></a></li>
        
<?php echo $_menu ?>
        
<li class=\"home <?php echo !$_anyActive ? \'active\' : \'\' ?>\"><a href=\"<?php echo $this->getUrl(\'\')?>ABOUT US\"><span><?php echo $this->__(\'aboutus\'?></span></a></li>
    </
ul>
</
div>
<?php endif ?>
 
Magento Community Magento Community
Magento Community
Magento Community
 
saikrishna59
Jr. Member
 
Avatar
Total Posts:  16
Joined:  2013-01-30
 

Nice post budy.It will help to other developers

 
Magento Community Magento Community
Magento Community
Magento Community
 
G_Mehta
Guru
 
Avatar
Total Posts:  418
Joined:  2010-01-27
India
 

To Avoid such scenario every time, like to do code every time when need to add CMS page into menu, I have solution for this, have a look demo of my extension

Cheers,

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top