2

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.

Thanks.

2
  • 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

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">
    <body>       
        <move element="minicart" destination="header.panel" after="-"/>
    </body>
</page>

Clear cache.

3
  • 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, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.