By default there is no Home link in Magento top navigation menu but you can easily add it yourself. 1- Copy following 2 files design/frontend/base/template/page/html/topmenu.phtml TO design/frontend/default/yourtheme/template/page/html/topmenu.phtml 2. Replace the content with following code
design/frontend/base/template/catalog/navigation/top.phtml
design/frontend/default/yourtheme/template/catalog/navigation/top.phtml <?php $_menu = $this->getHtml('level-top') ?> <?php if($_menu): ?> <div class="nav-container"> <ul id="nav"> <!-- HOME BUTTON HACK --> <?php $_anyActive = false; foreach ($this->getStoreCategories() as $_category) { $_anyActive = $_anyActive || $this->isCategoryActive($_category); } ?> <li class="<?php echo !$_anyActive ? 'active' : '' ?>"><a href="https://scriptbaker.com/<?php echo $this->getUrl('')?>"><?php echo $this->__('Home') ?></a></li> <!-- HOME BUTTON HACK --> <?php echo $_menu ?> </ul> </div> <?php endif ?>
Magento
Add Home link in Magento top navigation menu
By default there is no Home link in Magento top navigation menu but you can easily add it yourself. 1- Copy following 2 files design/frontend/base/template/pag
· 5 min read
Related posts
Magento
Magento 1: Export manufacturers CSV by specific store view
This post will guide you on how you can export the manufacturer list (Magento 1.9) to CSV file. In this script, I am filtering the list by store view. Let’
Magento
Magento 1: Export catalog categories for a specific store view
In this post you will learn how you can export Magento 1.9 categories for a specific store view as CSV. For example, you have Arabic store view with ID 7, and y
Magento
Search Magento products by product labels
Project Overview: Task was to develop a Product Labels Magento extension. Where admin can create product labels by uploading an image, enter label title and att