Magento 2 – Add custom links to top menu
Posted by navaneeth on Jun 24, 2017 in General, Magento 2 | 2 Comments
In this post we are discussing on how we can add custom menu to the magento 2 top menu
Add these code to YourTheme/Magento_Theme/layout/default.xml
<referenceContainer name="catalog.topnav">
<block before="-" class="Magento\Framework\View\Element\Html\Link\Current" name="your.link">
<arguments>
<argument name="label" xsi:type="string">Link-name</argument>
<argument name="path" xsi:type="string">Link-url</argument>
</arguments>
</block>
</referenceContainer>
This is how we can add custom links to magento 2 top menu.

2 Comments on “Magento 2 – Add custom links to top menu”
Jason
February 23, 2018This doesn’t work on 2.2.1
navaneeth
April 22, 2018Yes