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.

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

1 Answer 1

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>
1

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.