Skip to content

Instantly share code, notes, and snippets.

@VasylKyryliuk
Created August 21, 2018 09:19
Show Gist options
  • Save VasylKyryliuk/00910390e692fc2e442ae4cb57e4a8f5 to your computer and use it in GitHub Desktop.
Save VasylKyryliuk/00910390e692fc2e442ae4cb57e4a8f5 to your computer and use it in GitHub Desktop.
static breadcrumbs magento 2
<referenceBlock name="breadcrumbs">
<action method="addCrumb">
<argument name="crumbName" xsi:type="string" translate="true">Home</argument>
<argument name="crumbInfo" xsi:type="array">
<item name="title" xsi:type="string" translate="true">Home</item>
<item name="label" xsi:type="string" translate="true">Home</item>
<item name="link" xsi:type="string">/</item>
</argument>
</action>
<action method="addCrumb">
<argument name="crumbName" xsi:type="string" translate="true">Shopping Bag</argument>
<argument name="crumbInfo" xsi:type="array">
<item name="title" xsi:type="string" translate="true">Shopping Bag</item>
<item name="label" xsi:type="string" translate="true">Shopping Bag</item>
</argument>
</action>
</referenceBlock>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment