Posted on

Magento 2 moving top.search block before minicart

I seem to being having an issue with moving referenceblocks.

I have created a child theme based off of Blank. In my default.xml file, I moved both minicart and top.search blocks into header.panel like so

<move element=”top.search” destination=”header.panel” before=”minicart” />
<move element=”minicart” destination=”header.panel” after=”top.search” />

but I can’t get the minicart to be after the top.search. Can someone help me? Below is a screenshot of how it looks once I moved it.

Leave a Reply

Your email address will not be published. Required fields are marked *