0

I am working simple Magento site and my task is to change position in a category.

enter image description here

In this screenshot, top category and next to custom header, how to change position first see the custom header and next to see category

code is here:

 <referenceContainer name="content">
        <block class="Magento\Framework\View\Element\Template" name="custom_header"
               as="custom_header" template="Magento_Theme::html/header1.phtml"/>
        <move element="custom_header" destination="panel_wrapper" before="-"/>
    </referenceContainer>
0

Try this code:

<referenceContainer name="content">
    <block class="Magento\Framework\View\Element\Template" name="custom_header" as="custom_header" template="Magento_Theme::html/header1.phtml"/>
</referenceContainer>

<move element="custom_header" destination="panel_wrapper" before="-"/>

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.