I am trying to move the minicart from the header into the header panel. To do this, I need to update the default.xml file located here:


I believe this is done by copying this file to my local theme directory, here:


However, when making this copy (and no code changes), I am seeing errors related to knockoutjs and the minicart modal no longer renders correctly when the cart is clicked.

That said, changes to this overriding file do correctly render, e.g. renaming the reference container to header.panel does move the minicart icon.

What am I doing wrong?

2 Answers 2


I cracked it. Since I was overriding a base layout file (not a parent theme file?), I needed to place my file inside


  • 100% right solution Oct 1, 2019 at 14:21
  • This worked for me after many hours of frustration. Thank you.
    – Karl
    Oct 23, 2019 at 15:02

Can you please clarify where you placed the file?




Thank you

  • I no longer have the project in front of me, but feel free to try both locations.
    – M. Herold
    Mar 28, 2018 at 21:33

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.