I need to add new custom link fields(chat) in header tab.

For example luma page has these link fields in header page (create account, signup), same header place i want to add chat link in header top, suggest me how to do this.

  • Hey Rajkumar did this work for you? If so please accept it as correct answer
    – seb
    May 18, 2016 at 7:02

1 Answer 1


First of all, go to your custom theme app/desing/frontend/{Vendor}/{theme}/Magento_Theme/layout/default.xml file.

There you will find the below with the links you mentioned, just add the part below for your chat

    <referenceContainer name="header.panel">
            <block class="Magento\Framework\View\Element\Html\Links" name="top.links">

                 <block class="Magento\Framework\View\Element\Html\Link\Current" name="my-link1">
                        <argument name="label" xsi:type="string" translate="true">Chat</argument>
                        <argument name="path" xsi:type="string">Your_Link_To_The_Chat</argument>

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.