2

I need to add header and footer on checkout page. i have try below code for this but its not working its display only Logo on Header i want to add full header with menu and top links.

app/design/frontend/Package/theme/Magento_Checkout/layout/override/base/Magento/blank/checkout_index_index.xml

Code :

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
    <referenceContainer name="header.panel" remove="false" />
    <referenceBlock name="catalog.topnav" remove="false"/>
    <referenceContainer name="footer-container"  remove="false"/>
</body>
3
  • checkout_index_index.xml should be at app/design/frontend/Package/theme/Magento_Checkout/layout/checkout_index_index Commented Sep 18, 2017 at 5:14
  • I have already try this
    – Ajay Patel
    Commented Sep 18, 2017 at 5:15
  • let me know if you have any issue Commented Sep 18, 2017 at 5:56

1 Answer 1

3

@Ajay Patel Try this

Create checkout_index_index.xml at

app/design/frontend/Package/theme/Magento_Checkout/layout/checkout_index_index.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <move element="logo" destination="header-wrapper"/>
        <move element="catalog.topnav" destination="content" before="-"/>
        <move element="minicart" destination="header-wrapper"/>
        <referenceContainer name="header.panel" remove="false" />
        <referenceContainer name="footer-container"  remove="false"/>
    </body>
</page>

Now flush cache and try...!

4
  • ok let me check with this
    – Ajay Patel
    Commented Sep 18, 2017 at 5:56
  • yes its working but in mobile store menu not found any idea?
    – Ajay Patel
    Commented Sep 18, 2017 at 6:04
  • can you please check this?
    – Ajay Patel
    Commented Sep 18, 2017 at 6:47
  • store.menu this not generated using this code
    – Ajay Patel
    Commented Sep 18, 2017 at 6:52

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.