how to change product view page to one column layout

how to change product view page to one column layout

July 5, 2026 · Illustrated author avatarBy Stefan Bogdanescu
how to change product view page to one column layout

Changing Magento Product View Page to One Column Layout

As a new Magento learner, you might want to customize your store’s product view page to display products in a single column layout instead of the default two-column setup. This guide will walk you through the process step-by-step using Magento’s default theme.

Understanding the Default Layout Structure

Before making changes, let’s briefly discuss how Magento structures its product view pages.

By default, the catalog_product_view.xml file located in your theme’s layout directory defines the layout for individual product pages. It uses a two-column (two_columns_left) structure with the following configuration:

<catalog_product_view>
    <update handle="page_three_columns" />
    <reference name="root">
        ...
        <action method="setTemplate"><template>page/3columns.phtml</template></action>
    </reference>
    <reference name="head">
        ... (meta tags and CSS)
    </reference>

    <!-- The content for the left column -->
    <reference name="left">
        <block type="catalog/product_view" template="catalog/product/view.phtml"/>
    </reference>

    <!-- The main content area for product details -->
    <reference name="content">
        ...
        <block type="catalog/product_compare_list" name="catalog.product.compare.list" before="-"/>
        ... (various blocks like additional, cross-sell)
        <block type="core/text_list" name="product.view.description"
               as="description"><action method="setArea"><area>frontend</area></action>
            <action method="append">
                <text helpid="description"><![CDATA[<h2 class="page-title">{{var product.name}}</h2>]]></text>
            </action>
        </block>
    </reference>

    <!-- The right column -->
    <reference name="right">
        ... (various additional blocks)
    </reference>
</catalog_product_view>

As you can see, the left and right references contain blocks that display content in their respective columns.

Changing to a One Column Layout

To change the layout to one column, we need to modify this XML file. Here are the steps:

  1. Create a custom layout update file: Since you don’t want to override the default file directly (which is generally not recommended), create a new file in your theme’s layouts folder named catalog_product_view_onecolumn.xml. This will inherit from the existing view and allow for easy updates.

  2. Remove the left column reference: Open this new XML file and add the following content:

<?xml version="1.0"?>
<layout>
    <catalog_product_view>
        <!-- Remove the left column -->
        <remove name="left" />
        <!-- Remove the right column -->
        <remove name="right" />
        <!-- Merge the content area with the main area -->
        <reference name="content">
            <action method="merge"><name>main</name></action>
        </reference>
    </catalog_product_view>
</layout>

This code removes both left and right columns and merges their contents into the single content area.

  1. Update your theme configuration: To apply this new layout, you need to update the XML file that defines which layouts are used for each product page. Locate the local.xml file in your theme’s layout folder (or create it if it doesn’t exist).

Add a new <layout> section with a unique handle (e.g., catalog_product_view_onecolumn) and reference your new layout file:

<layout version="1.0">
    <default>
        ... (other configurations)
    </default>

    <!-- New layout for one column product view -->
    <catalog_product_view_onecolumn>
        <reference name="head">
            <!-- Add CSS files or meta tags as needed -->
        </reference>

        <update handle="catalog_product_view" />
        <update handle="catalog_product_view_onecolumn"/>
    </catalog_product_view_onecolumn>
</layout>
  1. Apply the new layout: Finally, you need to apply this new layout to your product pages. You can do this in two ways:
  • Manually for a single page: Open the specific product’s page_layout field in its admin edit form and select catalog_product_view_onecolumn. This applies the layout only to that particular product.

  • Globally for all products: If you want to apply this layout to all product pages, you can use Magento’s fallback mechanism. In your local.xml, add a new <catalog_product_default> node:

<catalog_product_default>
    <reference name="head">
        <!-- Add CSS files or meta tags as needed -->
    </reference>

    <update handle="catalog_product_view_onecolumn"/>
</catalog_product_default>

This will apply the catalog_product_view_onecolumn layout to all products by default.

Conclusion

Changing the product view page from two columns to one column in Magento involves a combination of XML layout updates and theme configuration changes. By following this guide, you should now be able to easily customize your store’s product display layout without needing to modify core files directly.

Remember that this is just a basic example—you can further extend and customize the layout by adding or modifying blocks as needed. For more complex customizations or if you encounter any issues, don’t hesitate to refer to our Magento development resources for in-depth guidance.

Happy coding!

Catalog Themes Configuration SEO

Our network