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.

1 Answer 1


It is set from the xml file at below location :



 <block class="Magento\Customer\Block\Account\Link" name="my-account-link">
               <argument name="label" xsi:type="string" translate="true">My Account</argument>
  • that works, thank you for your time ! what about the Sign In one ? I've tryed to see the other files but didn't found it..
    – alexcr
    Commented May 10, 2016 at 9:44
  • 1
    the label Sign in is set from /vendor/magento/module-customer/Block/Account/AuthorizationLink.php Commented May 10, 2016 at 9:49
  • Thank you , I've added the AuthorizationLink to my top nav with this line in default.xml <move element="authorization-link" destination="header.panel" after="minicart.topnav"/> how do I add it also for the mobile nav ?
    – alexcr
    Commented May 10, 2016 at 10: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.