Magento 2 how to change Position of My Account Link and Sign In link in header.

i want to show position like, Sign In, My Account and My Wishlist.

Theme is blank to working for it.


I would like to show My Account only after Successfully Sign in.

1 Answer 1


Just add code inside default.xml file with after attribute after="authorization-link",

<referenceBlock name="top.links">            
            <block class="Magento\Customer\Block\Account\AuthorizationLink" name="authorization-link"
            <block class="Magento\Customer\Block\Account\Link" name="my-account-link" after="authorization-link">
                    <argument name="label" xsi:type="string" translate="true">My Account</argument>

Now position is change inside header file.

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.