How to Add Custom Breadcrumbs to Any Pages in Magento?

Breadcrumbs are useful navigation tool for the customers.Breadcrumbs is a path to the product page, category page, etc in reference to the store map.Breadcrumbs is a structural block in Magento. That means it is a part of Magento structure. So if you need to reposition the breadcrumbs position, you really need to alter the Magento layout structure definition.

Add breadcrumb code to any page or phtml files


You will define the breadcrumbs block & you will add label, title & link to your breadcrumbs. Add below addCrumb Magento function

$breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
$breadcrumbs->addCrumb("home", array(
			"label" => $this->__("Home"),
			"title" => $this->__("Home"),
			"link"  => Mage::getBaseUrl()

The breadcrumbs are enabled by default and can be found under Admin > System > Configuration > General > Web > Default Pages > Show Breadcrumbs for CMS Pages


If you face any problems or need our professional services, please email us at [email protected]

Join our Newsletter

Never miss the latest offers, voucher codes and useful articles delivered weekly in your inbox.