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