2

How can i move account creation link and sign in link after the search box.

Need Help

enter image description here

1
  • i want sign links down nearby cart
    – kamal
    Commented Apr 21, 2017 at 10:35

2 Answers 2

1

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

4
  • any video files are available to do i can't understand this ( file template account/link/authorization.phtml copy in Magento_Customer to your theme or module for apply new template)
    – kamal
    Commented Apr 23, 2017 at 6:19
  • You can copy to your theme follow path magentoroot/app/design/frontend/YourVendorName/theme_name/Magento_Customer/templates/account/link/authorization.phtml <= this file template will override current original template if module Customer available . My code above you can put into any file layout (*.xml) default.xml will apply to all pages in current frontend. See theme luma as your example (you can find it inside vendor directory)
    – mrtuvn
    Commented Apr 23, 2017 at 7:57
  • im added the above your code in default.xml and also im copy authorization.phtml <= then after wher can i paste plz describe
    – kamal
    Commented Apr 27, 2017 at 8:30
  • I am facing the same issue and your answer is not working for me Commented Oct 22, 2019 at 14:18
1

Please add below line in default.xml layout

 <move element="top.links" destination="header-wrapper" after="top.search"/>

Than clean cache : php bin/magento c:f

1
  • I am facing the same issue and your answer is not working for me Commented Oct 22, 2019 at 14:16

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.