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

TopMenu is missing / Home Button after upgrade to 1.7
 
kevinwalter
Jr. Member
 
Total Posts:  7
Joined:  2011-08-23
 

I have found a solution to fix the problem!

Go to: \app\design\frontend\base\default\template\page\html\topmenu.phtml

The file contains:

<?php if($_menu): ?>
<div class="nav-container">
    <
ul id="nav">
        
<?php echo $_menu ?>
    
</ul>
</
div>
<?php endif ?>

Because I use a block to manage my Top Menu I have added some code:

Here is the one with only the Home Button:

<?php if($_menu): ?>
<div class="nav-container">
    <
ul id="nav">
        <
li><a href="<?php echo $this->getUrl('') ?>">Home</a></li>
        
<?php echo $_menu ?>
    
</ul>
</
div>
<?php endif ?>

Here is the one I’m using:

<?php if($_menu): ?>
<div class="nav-container">
    <
ul id="nav">
        <
li><a href="<?php echo $this->getUrl('') ?>">Home</a></li>
        
<?php echo $_menu ?>
        <?php 
echo $this->getLayout()->createBlock('cms/block')->setBlockId('menu')->toHtml(); ?>
    
</ul>
</
div>
<?php endif ?>

You need to create a static block with the ID: menu.
Then you can manage your top menu with the magento admin intergace.

Greetz,

Kevin Walter

 
Magento Community Magento Community
Magento Community
Magento Community
 
diegio
Jr. Member
 
Total Posts:  1
Joined:  2009-06-29
 

Thank you for this, it works perfectly!

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