I have found this question but it's for Magento 1.7.

I want to remove the product name in breadcrumb, so that my breadcrumbs will only show the category. For example, from:

Home/Category Name/Product Name


Home/Category Name

Thanks very much!


You can create an after plugin for method getBreadcrumbPath() of class Data in namespace Magento\Catalog\Helper and modify the return array.

You know more about plugins you can go through https://devdocs.magento.com/guides/v2.2/extension-dev-guide/plugins.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.