How to edit my-account-link in Magento2?
-
29-09-2020 - |
Question
I'm using Magento 2. I tried to edit the my-account-link
element ("My Account" link in the top bar), I just want to change the text with an icon but I can't find the phtml
file to edit!
I've tried to enable the path hints but doesn't take me to the proper file to edit.
Solution
It is set from the xml file at below location :
/magento-root/vendor/magento/module-customer/view/frontend/layout/default.xml
--
<block class="Magento\Customer\Block\Account\Link" name="my-account-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">My Account</argument>
</arguments>
</block>
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange