3

How to show breadcrumb on home page? I have enabled breadcrumb option for all cms page from the Admin panle. But it's not apply for home page. What is the standard way to display breadcrumb on home page also?

1

Try adding below code in you cms_index_index.xml under <body> tag

<referenceBlock name="breadcrumbs">
    <action method="addCrumb">
        <argument name="crumbName" xsi:type="string">Home</argument>
        <argument name="crumbInfo" xsi:type="array">
            <item name="title" xsi:type="string">Home</item>
            <item name="label" xsi:type="string">Home</item>
            <item name="link" xsi:type="string">/</item>
        </argument>
    </action>
</referenceBlock>
  • Done......... :) – Ravi Dec 21 '17 at 5:11

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.