How to add breadcrumbs to my account page in Magento | Magento Source24

How to add breadcrumbs to my account page in Magento | Magento Source24


👉 Hello friends today's i'm share with you to how to add breadcrumbs to my account page in Magento 


👉 If you need breadcrumbs in customer account dashboard page then follow below instructions

👉  in this case You need to override customer_account_index.xml layout file in your theme and add the below code. 



<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<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>
    <action method="addCrumb">
        <argument name="crumbName" xsi:type="string">Account</argument>
        <argument name="crumbInfo" xsi:type="array">
            <item name="title" xsi:type="string">Account</item>
            <item name="label" xsi:type="string">Account</item>
        </argument>
    </action>
 </referenceBlock>
 </page>


check this screenshot : 

How to add breadcrumbs to my account page in Magento | Magento Source24













Deepak Kumar Bind

Success is peace of mind, which is a direct result of self-satisfaction in knowing you made the effort to become the best of which you are capable.

Post a Comment

If you liked this post please do not forget to leave a comment. Thanks

Previous Post Next Post