Magento: remove footer from wrapper

Magento: remove footer from wrapper

October 14, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento: remove footer from wrapper

Removing the Footer from Magento Wrapper

In this post, we’re going to demonstrate how to remove the footer from the wrapper and place it at the end of your page in Magento. This is particularly useful when you want a footer that spans the full width of the browser resolution.

Understanding the Current Setup

The default Magento setup includes the footer block inside the bottom.container wrapper, which limits its width to the container. You can find this configuration in your theme’s or local.xml file under the <block type="page/html_footer">...</block> section.

<block type="page/html_wrapper" name="bottom.container" as="bottomContainer">
    <label>Page Footer</label>
    <action method="setElementClass"><value>bottom-container</value></action>
</block>

To achieve your goal, we need to remove the bottom.container wrapper and directly place the footer at the end of the page content.

Step 1: Remove the Wrapper

Open your theme’s or local.xml file. Locate the <bottom.container> block within the <footer> block and remove it completely:

<block type="page/html_footer" name="footer" as="footer">
    <block type="core/template" name="global_cookies_acceptance" as="global_cookies_acceptance"/>
    <!-- Removed: <block type="page/html_wrapper".../> -->
</block>

Next, we need to add a new block that will contain your custom footer. This block should be placed right after the <content> block.

Add the following code somewhere within your layout XML file (usually inside the root node):

<block type="core/template" name="custom_footer" as="custom_footer">
    <action method="setTemplate">
        <template>page/html/footer.phtml</template>
    </action>
    <action method="setElementClass"><value>footer-container</value></action>
</block>

Finally, update your footer.phtml template located in app/design/frontend/<your_package>/<your_theme>/template/page/html/ to include your custom footer content.

Why This Approach?

This method ensures that your footer is not restricted by any wrapper class and can span 100% of the browser width. It also keeps your layout clean and easy to manage.

Remember, always make changes in a local environment or a staging server before deploying them on your live site.

That’s it! You now know how to remove the Magento footer from the wrapper and place it at the end of the page for full-width functionality. If you need any further assistance with Magento development, feel free to explore our comprehensive guides at Laravel Company.

Themes Configuration

Our network