I already check many answers regarding move header.links
to page.top
its working but the problem is that its also move my custom links to header content.
that's why I remove greeting message
, Sign in
, Create an account
& add custom links to the top menu, but now I did not found any solution to add sign in
, Create an account
link & Greeting message
into the header-content or near the search box.
I tried by creating default.xml into app/design/.../Magento_Theme/layout, but its not working, I added custom link by module, so please give me solution which can achieve by module.
Here is my default.xml
File Path:
app/code/vendor/modulename/view/frontend/layout/default.xml
<body>
<referenceBlock name="header.links">
<!-- Contact us Link -->
<block class="Magento\Framework\View\Element\Html\Link" name="contactus.link" after="register-link">
<arguments>
<argument name="label" xsi:type="string" translate="false">Contact Us</argument>
<argument name="path" xsi:type="string" translate="false">contact-us</argument>
</arguments>
</block>
<!-- CMS Page Link Link -->
<block class="Magento\Framework\View\Element\Html\Link" name="aboutus.link" after="contactus.link">
<arguments>
<argument name="label" xsi:type="string" translate="false">About Us</argument>
<argument name="path" xsi:type="string" translate="false">about-us</argument>
</arguments>
</block>
<!-- CMS Page Link Link -->
<block class="Magento\Framework\View\Element\Html\Link" name="customerservice.link" after="customerservice.link">
<arguments>
<argument name="label" xsi:type="string" translate="false">Customer Service</argument>
<argument name="path" xsi:type="string" translate="false">customer-service</argument>
</arguments>
</block>
<referenceBlock name="register-link" remove="true" />
<referenceBlock name="authorization-link-login" remove="true" />
<referenceBlock name="wish-list-link" remove="true" />
<referenceBlock name="my-account-link" remove="true" />
</referenceBlock>
</body>
I also tried add link by using page.top but its shows link below the header-content
.