I have to remove complete header and footer from checkout/cart page to all onwards pages in magento 1.7. All I know that I need to add <remove name="header"/> in the "checkout.xml" file but whenever I'm trying to add that same line, Either nothing reflecting on front-end or a blank page appear on front-end.

  • you say from checkut/cart page to all onwards pages, what do you mean by this as this will change what layout handles you use – David Manners May 22 '14 at 19:02

I'll paste here an example how to remove header from front page (this is the content of my layout update (local.xml) file):

<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
    <remove name="header" />

You can change context to whatever you want, for example should you replace cms_index_index with default, the update will apply to ALL pages.


Where did you add the code, perhaps you added on wrong XML node, add that inside <reference name="root"/> and clear the cache to see the result. If you do not want side columns as well then this might also help your cause.

    <reference name="root">
        <action method="setTemplate"><template>page/empty.phtml</template></action>
  • No, actually As per ur suggestion I have tried to add these code at the same place, but it generating an epmty white page on frontend – Saurabh Singh Mar 10 '14 at 10:27

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.