Magento Breadcrumbs – Custom ‘Home’ Link

Photo of author
Written By Ryan Rana





This is a quick and easy one, but useful for those who are building their Magento store as a section of a larger site.  The problem is that, by default, the Magento breadcrumbs will produce mark-up with the home text or icon linking through to the base URL of the Magento store.  However, if your Magento installation isn’t the root of the site you won’t want this.

You can customise the home link by creating a local version of app\code\core\Mage\Catalog\Block\Breadcrumbs.php and then hardcoding the link URL as below;

breadcrumbsBlock->addCrumb('home', array(
'title'=>Mage::helper('catalog')->__('Go to Home Page'),

As per tzyganu’s advice on this thread here;

Leave a Comment