Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7175943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:24:23+00:00 2026-05-28T16:24:23+00:00

I have a magento website with multi store and i have been able to

  • 0

I have a magento website with multi store and i have been able to add the home link on the default store. the whole site along with its multi stores shares the same theme but in the theme i edited template/page/navigation/top.php with the code

<?php 
$_anyActive = false; 

foreach ($this->getStoreCategories() as $_category) 
{ 
   $_anyActive = $_anyActive || $this->isCategoryActive($_category); 
} 
?>

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

This code now makes the home link shows but now its only shows in the default store but i want it to show in all other stores, i dont understand this but as they whole stores shares the same theme, i thought maybe they should also be able to read this code and display the home link, i could duplicate the themes and then assign them to each store (which i’m not even sure would work) but that would make the code deficult to maintain as i though if they share the same design, i could just make one change and reflect on the entire sub stores.

The following is the content of template/page/navigation/top.php

    <?php $_menu = ''?>
    <?php foreach ($this->getStoreCategories() as $_category): ?>
    <?php $_menu .= $this->drawItem($_category) ?>
    <?php endforeach ?>
    <?php if ($_menu): ?>
    <div class="nav-container">
    <ul id="nav">

    <?php $_anyActive = false; foreach ($this->getStoreCategories() as $_category)         { $_anyActive = $_anyActive || $this->isCategoryActive($_category); } ?>
     <li class="home <?php echo !$_anyActive ? 'active' : '' ?>"><a href="<?php echo $this->getUrl('')?>"><span><?php echo $this->__('Home') ?></span></a></li> 

    <?php echo $_menu; ?>
</ul>
     </div>
    <?php endif; ?>

I hope you are able to help me solve this problem

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:24:25+00:00Added an answer on May 28, 2026 at 4:24 pm

    I guess the problem is that you put your home link inside of main navigation. As your secondary stores don’t have any navigation, the whole unordered list has not been generated.

    Try this:

    <?php
    
     $_menu = '';
     $_anyActive = false;
     foreach ($this->getStoreCategories() as $_category){
      $_menu .= $this->drawItem($_category);
      $_anyActive = $_anyActive || $this->isCategoryActive($_category);
     }
    
    ?>
    
    <div class="nav-container">
    <ul id="nav">
     <li class="home <?php echo !$_anyActive ? 'active' : '' ?>"><a href="<?php echo $this->getUrl('')?>"><span><?php echo $this->__('Home') ?></span></a></li>
     <?php echo $_menu; ?>
    </ul>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have configured multi site in my magento website. I follow the following link
I have a webshop (magento platform) but the site was has been disabled by
hai I have a magento web site. In this the search function compare with
I am creating a store in Magento and have a weird issue with IE6
I have a Magento website with 2 languages, when I send a new password
Building a website using a PHP based Ecommerce product Magento. The problem I have
I have problem with tooltips on my magento website, I need to have one
I have a Magento store which contains over 2500 categories. I have so many
Objective Send out a Magento transactional email with a link back to the website
I'm trying to integrate PayPal into my Magento 1.6 store, preferably the Website Payments

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.