Add header and footer in checkout page Magento2

By default Magento 2 don't provide HEADER and FOOTER in CHECK OUT page.

So I checked checkout_index_index.xml file on path


There is remove attribute set for header and footer

so I unset remove attribute from remove=true to remove=false.

But still header and footer is not showing in checkout page so can anyone tell me how can I get header and footer on checkout page?


In Magento 2.1(.1) the logo is moved in the /vendor/magento/module-checkout/view/frontend/layout/checkout_index_index.xml from it's regular place to checkout.header.wrapper and then it seems to get lost somewhere..

This is the culpit:

<move element="logo" destination="checkout.header.wrapper"/>

To get the logo back, add/edit the file: [root]/app/design/frontend/[vendor]/[theme]/Magento_Checkout/layout/checkout_index_index.xml

<?xml version="1.0"?>
<page xmlns:xsi=""
        <move element="logo" destination="header-wrapper"/>

I got a solution.

First go to Magento_Checkout in your theme folder app/design/frontend/package_name/theme_name/Magento_Checkout

Now create below folder structure in layout folder on the above path. override/theme/Magento/blank/checkout_index_index.xml

in this checkout_index_index.xml file add below code.

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

I hope someone will find this useful.

For me this worked:


<?xml version="1.0"?>
<page xmlns:xsi="" layout="checkout" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <move element="logo" destination="header-wrapper"/>


<?xml version="1.0"?>
<layout xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
    <update handle="1column"/>

Similar questions

Add content between header and footer in page Magento 2
in the above PHP code, I want to add $listBusBlock between header and footer if I use $this->getResponse()->setBody($listBusBlock); the content is set to all body and header and footer is gone. what should is use instead of setBody so that the content can be added between header and footer Any help is appreciated thanks in advance
Magento2: How to remove footer and header for the second store created?
I have created two stores in Magento2. One is main website and the second one is retailer site. I need to remove the footer section and the navigation bar for my retailer site. I also need to remove the favorites section from the header only for my retailer site. Please anyone guide me on this. Any help would be appreciated.
how to remove header & footer from login page in magento2?
I want to remove header & footer from login page. I tried following code.but its not working. Can you anyone help me on this?
How to add Two Header and Two Footer for Multi-Store
I have used the same theme for my multi-store, I need to change header and footer completely for my second store. How can add 2 headers and 2 footers for my multi-store?
How to add default header and footer to a custom mail on magento 2.2
I have created a module where I send a custom mail. For this, I have a custom email template. Now what I want to do is to include the default header and footer that appears in all my Magento emails, in my custom mail. I tried to include the header and the footer like this but is not working: and my email_templates.xml I need to include also the hea...
How I add my Header and footer in my magento 2 theme
I am new fresher and start Magento 2 development I have created a Magento 2 theme and I have created a custom header and footer how I add my custom header footer in Magento 2 theme this is my theme view this is my simple theme folder and this is my custom header and footer how I add this header and footer in this theme

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.