How to move minicart to toplinks block. I want to move cart icon to top beside sign in link.

By default Mini Cart display after header links panel wrapper class.


  • have you want to move minicart in top header after header links class? Dec 7, 2016 at 10:09
  • Rakesh ...yes i want to show it in top
    – User0434
    Dec 7, 2016 at 10:11

1 Answer 1


Keep below xml code inside your theme, default.xml file,

<page layout="3columns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <move element="minicart" destination="header.panel" after="-"/>

Clear cache.

  • how to move this reference container names are different ? Rakesh
    – User0434
    Dec 7, 2016 at 10:23
  • You have to just set above line in your default.xml file and see changes. Dec 7, 2016 at 10:26
  • Hello, Have you checked this answer? If you stuck let me know Dec 7, 2016 at 11:27

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.