Magento – Removing Header and Footer from CMS Page

cmsfooterheaderpage-content

is it possible to remove both the header and footer and only display the contents of a CMS page? If so, how?

Currently the html looks something like this by default:

<body class=" cms-page-view cms-info-shipping cms-info-shipping">
    <div id="header">...</div>
    <div id="content">...</div>
    <div id="footer">...</div>
</body>

Thanks in advance for any elucidation.

Best Answer

when editing the cms page, there's a field called layout update. use this code in it:

<reference name="root">
    <remove name="header"/>
    <remove name="footer"/>
</reference>
Related Topic