0

I need to add some custom links on header just like below screenshot:-

enter image description here

But as i trying to add the same on "header.links" it's adding right side(near CONTACT US link).

how can i achieve my expected one?

  • Check the html where it rendering. It might be something related to css. – Sukumar Gorai Jun 17 at 10:56
  • By default Magento2 added right side but i needed the same left side. – wakar Ahamad Jun 17 at 10:58
  • Are you working in default magento? Can you update the code which you are using to add this? – Sukumar Gorai Jun 17 at 10:58
0

In default.xml write below code.

<referenceBlock name="header.panel">
     <block class="Magento\Framework\View\Element\Html\Link" name="add-new-header-link" after="store_language"> 
         <arguments>
 <argument name="label" xsi:type="string" translate="true">New Link</argument>
 <argument name="path" xsi:type="string" translate="true">new-link</argument>
 </arguments>
     </block>
 </referenceBlock>

I hope it's usefully for you.

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.