cancel
Showing results for 
Search instead for 
Did you mean: 

How to add Header links to category section?

How to add Header links to category section?

 How to add Header links to category section?category.JPGheader links.JPG

1 REPLY 1

Re: How to add Header links to category section?

Hello sekhar_n,

In your theme's file, YourTheme/Magento_Theme/layout/default.xml add the below code:

<referenceContainer name="catalog.topnav">
    <block class="Magento\Framework\View\Element\Html\Link\Current" name="your.link">
        <arguments>
            <argument name="label" xsi:type="string">Header-link-name</argument>
            <argument name="path" xsi:type="string">Header-link-url</argument>
        </arguments>
    </block>
</referenceContainer>

And flush the cache, check on front-end.

Hope it will help you. Smiley Happy