Can anyone let me know how to add custom top link on top menu after create an account link or at any place I want to put before/after.

I have tried with after attribute but its not changing position as I want.


  • Please show your code which you have tried now. Dec 16, 2016 at 10:38

1 Answer 1


you can position the with before="account" or after="account"

<referenceBlock name="header.links">           
      <block class="Magento\Framework\View\Element\Html\Link\Current" name="cart" before="account">
                 <argument name="label" xsi:type="string">Cart</argument>
                <argument name="path" xsi:type="string">checkout/cart</argument>          

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.