0

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.

Thanks.

  • Please show your code which you have tried now. – Rakesh Jesadiya Dec 16 '16 at 10:38
0

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">
                <arguments>
                 <argument name="label" xsi:type="string">Cart</argument>
                <argument name="path" xsi:type="string">checkout/cart</argument>          
                </arguments>            
      </block> 
</referenceBlock>

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.