1

How can I add breadcrumbs to the

catalog product view

page?

I override in my theme:

catalog_product_view.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content.top">
            <block class="Magento\Theme\Block\Html\Breadcrumbs" name="breadcrumbs" as="breadcrumbs" />  
        </referenceContainer>
        <referenceBlock name="view.addto.compare" remove="true"/>
    </body>
</page>

Sadly this ain't working. Someone knows what to do?

Thanks for any help!

3
  • Magento2 by default breadcrumb works on product pages did you use any mega menu module ? Aug 14, 2018 at 16:19
  • yes I use a mega menu module. Aug 15, 2018 at 7:17
  • are you using Ibnab mega menu module ? Aug 15, 2018 at 15:58

1 Answer 1

2

I had same problem with my Magento 2 instance. Tried lot. Finally resolved it by following extension which helps me to resolve the issue which also set full category path to breadcrumb to all products.

https://github.com/harrigo/EverCrumbs

This type of issue is due to page full cache an also know issue in Magento 2 but not all time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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