Home » Magento tutorial for developer » How to add breadcrumb to a specific Magento page

How to add breadcrumb to a specific Magento page

Sometimes you will find out that there are some pages in Magento with no breadcrumbs enabled by default. In order to add Breadcrumbs, for example, on the checkout page, open checkout.xml file stored in ‘layout’ folder of the current theme, and find there ‘checkout_onepage_index’ block.  Then add to the block this code:

If the modified store is multilingual add into the opening tag of the block <translate=”label”>, here’s the example:

The content of ‘label’ tag and proper translation should be added to mage_checkout.csv file.

The above described example illustrates how to show breadcrumbs with the help of xml, but it is possible to do it directly in the code of the phtml files. With the help of the line (see the example below) it is possible to enable breadcrumbs and show it on a certain page:

This example describes a simple method how to add custom breadcrumbs:

The advantage of this method is that you can dynamically modify breadcrumbs (if it’s necessary).

About Brian Wilson

Brian is a freelance Magento developer with 5 years of experience with customizing Magento extensions, magento themes. He's interested in sharing Magento Tutorials to the community

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Scroll To Top