How to get search to be in category part, please look at the picture below even cart iconenter image description here

1 Answer 1


You will want to do this via default.xml. Ideally: app/design/frontend/vendor/theme-name/Magento_Theme/layout/default.xml

Here we will call on the minicart element and move it to your nav section or where you'd prefer, ex. <move element="minicart" destination="top.links" />

Then we will want to go into the respective template file in my case top_links.phtml and we will call on the childhtml so we can render our cart like so: <?php echo $this->getChildHtml('minicart'); ?>

The same will be done for the search.

  • This doesn't work for me
    – Bayzel
    Commented Sep 5, 2022 at 6:03
  • can you share what you have done?
    – Infinri
    Commented Sep 5, 2022 at 13:54
  • I have solve my problem i added additional class using javascript then i moved it using css
    – Bayzel
    Commented Sep 6, 2022 at 9:43

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.