I am using Porto theme (header Type 1) with Magento 2.3.2 setup. I want to move Top Links section elements i.e : Sign in, Currency etc under the header content after the mini search bar.

Here is the code that I am using :


    <referenceBlock name="authorization-link-login" remove="true" /> 

    <referenceContainer name="header-wrapper">
        <container name="sign-in-div" htmlTag="div" htmlClass="signin-wrap" after="top.search">
            <block class="Magento\Customer\Block\Account\AuthorizationLink" name="authorization-link-custom" template="Magento_Theme::account/link/authorization.phtml" />

1) The first line works fine, it removes the default one. 2) But the code under "referenceContainer" didn't work :(

I have tried the same code in Magento default setup and it works fine for me, but not with the Porto theme.

Thanks !

1 Answer 1


Check below file


check line No-401 in that file if you want to add currency, header.links, and store_language directly copy code and paste it under header content.because of file header.phtml to handle the whole header section and all div also.

Hope this helps you...!

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.