Magento – Magento 2 – How to change position of Sign in and My Account link linkmagento-2.1magento2moduletoplinks How can i move account creation link and sign in link after the search box. Need Help Best Answer You can edit by layout like this way. Add this code below inside body tag in default.xml layout <referenceBlock name="authorization-link-login" remove="true" /> <referenceContainer name="header-wrapper"> <container name="sign-in-div" htmlTag="div" htmlClass="signin-wrap" after="logo"> <block class="Magento\Customer\Block\Account\AuthorizationLink" name="authorization-link-custom" template="Magento_Theme::account/link/authorization.phtml" /> </container> </referenceContainer> file template account/link/authorization.phtml copy in Magento_Customer to your theme or module for apply new template Related SolutionsMagento 2 – How to Change Position of Sign In and My Account Link 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. Magento – Moving “My Account” link from the top links in 2.2 Having a similar issue. I found a link from October at https://github.com/magento/magento2/issues/11431 that seems to be similar. Related TopicMagento – Magento 2.2.2 – Display Customer Account header dropdown and remove Sign Out link post loginMagento – Remove “Sign Out” link in header panel but keep “Sign Out” link in dropdownMagento2 – How to Remove Sign In and Create Account Links from HeaderMagento 2 – Sign In/Sign Out Link Improper Behavior with Varnish Cache
Best Answer
You can edit by layout like this way. Add this code below inside body tag in default.xml layout
file template account/link/authorization.phtml copy in Magento_Customer to your theme or module for apply new template