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? – Rakesh Jesadiya Dec 7 '16 at 10:09
  • Rakesh ...yes i want to show it in top – User0434 Dec 7 '16 at 10:11

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.

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

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.