0

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 – Klettseb May 18 '16 at 7:02
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">
                    <arguments>
                        <argument name="label" xsi:type="string" translate="true">Chat</argument>
                        <argument name="path" xsi:type="string">Your_Link_To_The_Chat</argument>
                    </arguments>
                </block>                   
            </block>
        </referenceContainer>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.