January 21, 2011

Magento Add Home button to horizontal Top Navigation

In this post I will show you how to add a Home button to your Horizontal Top Navigation like on this website www.ruitersport-discounter.nl

Ruitersport-Discounter - Home button
Home button on the left side of the Horizontal Top Navigation Bar














We are going to edit the following file:
\app\design\frontend\default\default\template\catalog\navigation\top.phtml
 Within the <div class="nav-container"><ul id="nav">, but above the <?php echo $_menu ?>, paste the following code snippet:

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

11 comments:

  1. I am a regular reader of your blog and being students it is great to read that your responsibilities have not prevented you from continuing your study and other activities. Love
    Python training in marathahalli | Python training institute in pune

    ReplyDelete
  2. This is beyond doubt a blog significant to follow. You’ve dig up a great deal to say about this topic, and so much awareness. I believe that you recognize how to construct people pay attention to what you have to pronounce, particularly with a concern that’s so vital. I am pleased to suggest this blog.

    Java training in Chennai | Java training in Bangalore

    Java interview questions and answers | Core Java interview questions and answers

    ReplyDelete
  3. You’ve written a really great article here. Your writing style makes this material easy to understand.. I agree with some of the many points you have made. Thank you for this is real thought-provoking content

    Data Science training in kalyan nagar | Data Science training in OMR

    Data Science training in chennai | Data science training in velachery

    Data science training in tambaram | Data science training in jaya nagar

    ReplyDelete
  4. Older homes regularly need more work done on them, be it HVAC frameworks, entryways, windows or water framework so as to be vitality effective. With another form, you can make certain that the house is at the highest point of the productivity innovation. carpet cleaning

    ReplyDelete
  5. The organization you approach for your logo configuration must be believable. They ought to have a past involvement in their industry of around two years or more. Ensure they are true, and do foundation research to see where they remain in the market.
    logo design service

    ReplyDelete
  6. Your info is really amazing with impressive content..Excellent blog with informative concept. Really I feel happy to see this useful blog, Thanks for sharing such a nice blog..
    If you are looking for any python Related information please visit our website Python Training In Pune page!

    ReplyDelete
  7. Thanks for sharing,you gave a lot of useful information that i was exactly looking for.Its very interesting.Data Science is growing fast,if you are the one looking for Data Science certification course visit Best Data Science Certification Course in Bangalore

    ReplyDelete
  8. Do you want to get back love of your life and have tried all possible efforts but failed in all? Did you love someone madly but recently had a breakup? Do you want your beloved back? If yes then astrology is the best which recommends various remedies to solve this problem.

    Get your love back astrologer to see a wonderful difference created in your love life. Astrology will work like magic and at the end your love life will be blessed with happiness and passion for each other. Ask your World Famous Indian Astrologer now.

    ReplyDelete
  9. You have written a really great article..
    Thanks for sharing with us,
    We are again come on your website,
    Thanks and good day,
    Please visit our site,
    buylogo

    ReplyDelete