4

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 Answer 1

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>
1
  • Done......... :)
    – Ravi Soni
    Commented Dec 21, 2017 at 5:11

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.