Add  Breadcrumbs on Contact Page

Are the breadcrumbs not displaying on the Contacts page and you are wondering why? The answer is because Magento does not do that by default. Let's see how we can add them.

You can easily add them by inserting them in the layout of the contact page contact_index_index.xml. In the layout as you can see below, we get the block breadcrumbs and using the addCrumb we pass the argument needed to create them.

Please place the above file on your custom module under /view/frontend/layout/contact_index_index.xml or in your custom theme under the module Magento_Contact.

The full example as extension can be found here.

Feel free to share this post and ask your questions in the comments below.

Till next time!

DigitalOcean Referral Badge