I am creating a custom theme from the parent theme Luma. I've added this code to Magento_Theme/layout/default.xml to include the minicart.

<block class="Magento\Checkout\Block\Cart\Sidebar" name="minicart" as="minicart" template="Magento_Checkout::cart/minicart.phtml"/>

The result added the cart icon but when clicked on, it only shows a blank popup. This stays blank whether there is a product added to cart or not. There is no error messages in console.

enter image description here

Minicart Page Source on my site

Working Website Page Source

  • I switched my theme back to Luma and the cart does work, so it must be something in my custom theme that is breaking it, but I'm not sure what to look for
    – Josiah
    Commented Jun 11, 2019 at 16:14

1 Answer 1


If you are doing child theme based on parent theme Luma you can just move minicart block

<move element="minicart" destination="your.container" />
  • If I do this then the cart doesn't even show
    – Josiah
    Commented Jun 11, 2019 at 15:15
  • For example if I set the destination to "header-wrapper", then clear the cache and then it shows nothing on the frontend.
    – Josiah
    Commented Jun 11, 2019 at 15: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.