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>
  • checkout_index_index.xml should be at app/design/frontend/Package/theme/Magento_Checkout/layout/checkout_index_index – Prince Patel Sep 18 '17 at 5:14
  • I have already try this – Ajay Patel Sep 18 '17 at 5:15
  • let me know if you have any issue – Prince Patel Sep 18 '17 at 5:56
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...!

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

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.