1

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.

Thanks.

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

2

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"
                   template="account/link/authorization.phtml"/>
            <block class="Magento\Customer\Block\Account\Link" name="my-account-link" after="authorization-link">
                <arguments>
                    <argument name="label" xsi:type="string" translate="true">My Account</argument>
                </arguments>
            </block>
        </referenceBlock>

Now position is change inside header file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.