How to display magento contact page breadcrumbs?

How to display magento contact page breadcrumbs?

August 21, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How to display magento contact page breadcrumbs?

Solving Magento Breadcrumb Display Issues on Contact Page

If you’re new to Magento development and facing issues with your contact page breadcrumb not displaying as expected, you’re not alone. This common problem can be resolved with the right configuration and understanding of Magento’s breadcrumb system.

Understanding the Magento Breadcrumb System

The Magento breadcrumb is a built-in feature that helps users navigate through your website by providing context about their current location in relation to other pages on the site. It’s particularly useful for e-commerce platforms where customers might visit many different pages during their shopping journey.

By default, Magento uses a single layout file (app/design/frontend/base/default/layout/cms.xml) to define breadcrumbs for all CMS pages, including your contact page. This is why the same breadcrumb appears on every CMS page, regardless of its content.

Debugging Your Contact Page Breadcrumb Issue

Before diving into the solution, let’s first confirm that the issue lies with Magento itself and not with your theme or customizations:

  1. Switch to the default Magento theme temporarily.
  2. Check if the contact page breadcrumb is still displaying on all pages. If it is, then the problem likely resides within the core Magento configuration.

Customizing Breadcrumbs for Your Contact Page

To display a unique breadcrumb only on your contact page, you need to override the default CMS page layout with a custom one. Here’s how:

  1. Create a new module if you don’t have one already: Navigate to /app/code/local and create a new folder structure like this: MyCompany/MyMagentoBreadcrumbs.

  2. Override the CMS page layout:

    • In your newly created module, navigate to app/etc/modules.
    • Create a new file called MyCompany_MagentoBreadcrumbs.xml with the following content:
<config>
    <modules>
        <MyCompany_MagentoBreadcrumbs>
            <active>true</active>
            <codePool>local</codePool>
            <depends>
                <Mage_Cms />
            </depends>
        </MyCompany_MagentoBreadcrumbs>
    </modules>
</config>
  • Next, navigate to app/code/local/MyCompany/MagentoBreadcrumbs etc/modules.
  • Create a new XML file named MyMagentoBreadcrumbs.xml and add the following code:
<config>
    <global>
        <cms>
            <layouts>
                <mycompany_contact>
                    <name>Contact Page Layout</name>
                    <template>page/1column.phtml</template>
                </mycompany_contact>
            </layouts>
        </cms>
        <layout>
            <updates>
                <contactpage translate="label" module="cms">
                    <label>Contact Page (ALL STORES VIEW)</label>
                    <file>cms.xml</file>
                </contactpage>
            </updates>
        </layout>
    </global>
</config>
  1. Create the custom CMS page layout:

    • In your module, navigate to app/design/frontend/base/default/layout.
    • Create a new folder called MyCompany and inside it, create another folder called MagentoBreadcrumbs (you can use different names).
    • Inside this final folder, create a new XML file named mycompany_cms.xml.
  2. Define the custom breadcrumb:

    • Open your newly created mycompany_cms.xml file and add the following code:
<layout version="0.1.0">
    <cms_page_container>
        <reference name="breadcrumbs">
            <action method="addLink" translate="label title">
                <label>Contact Us</label>
                <title>Contact Us</title>
                <link>http://www.yoursite.com/contact</link>
            </action>
        </reference>
    </cms_page_container>
</layout>

Replace http://www.yoursite.com/contact with the actual URL of your contact page.

  1. Assign the custom layout to your contact page:
    • Navigate to Magento admin panel > CMS > Pages.
    • Click on your contact page and go to the Design tab.
    • In the Layout field, enter mycompany_contact (or whatever you named your layout in step 2).
    • Save your changes.

Conclusion

By following these steps, you should now have a custom breadcrumb specifically for your contact page. This approach allows you to override the default Magento behavior while keeping your solution modular and maintainable.

Remember that customizing core Magento files is generally not recommended due to potential upgrade conflicts. If possible, consider using an extension or a theme that already provides this functionality out of the box.

For more advanced customizations and best practices in Magento development, I recommend checking out our comprehensive guide on Laravel Company’s Magento Development.

With these changes, your contact page should now display a unique breadcrumb without affecting other CMS pages. If you’re still encountering issues, double-check your code and ensure that the paths and URLs match exactly.

Happy coding!

Themes Configuration Customers Errors

Our network