0

Here is my code to add the mini cart on my custom header .Any help?

<body>      
        <referenceBlock name="header.container" remove="true" />
        <referenceContainer name="page.wrapper">
            <block  class="Magento\Framework\View\Element\Template" name="custom_header" template="Magento_Theme::header.phtml" before="header.container"/>
        </referenceContainer>
        <move element="minicart" destination="custom_header.header" />
        
</body>

1 Answer 1

0

You move block minicart to wrong destination non-exist custom_header.header

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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