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.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityCan 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>