Home » Magento27 September 2010

Magento: How to change default page layout?

Here, I will show you how you can change the default page layout in Magento. By page layout, I mean all CMS page, category page, etc.

There are different ways to change the page layout in Magento. Here are some of them:-

Changing individual category page layout

You can modify the page layout of each individual category by the following step:-

- Go to Catalog -> Manage Categories
- Select any category
- Click the ‘Custom Design’ tab
- Select your desired page layout from ‘Page Layout’ selectbox
- Save Category and you are done!

Changing category page layout from catalog.xml file

- Open layout/catalog.xml file
- Find the node ‘catalog_category_default’
- Find the following line within the node ‘catalog_category_default’

<action method="setTemplate"><template>page/2columns-left.phtml</template></action>

- The above line has set 2columns-left layout. You can change it to your desired choice like 2columns-right, 3columns, etc.

Changing category page layout from page.xml file

This is the best option I prefer to change the default page layout.

- Open layout/page.xml file
- Under the ‘default’ node, you will find the following code:-

<block type="page/html" name="root" output="toHtml" template="page/2columns-left.phtml">

- The above line has set 2columns-left layout. You can change it to your desired choice like 2columns-right, 3columns, etc.

Hope this helps. Thanks.

From Mukesh Chapagain's Blog, post Magento: How to change default page layout?

php magento mukesh chapagain

Get New Post by Email

Find me on

Facebook Twitter Google+ LinkedIn RSS Feed
  • Magento Developer

    I have successfully changed the page layout for login page to 2columns-left but it shows blank space at the left column instead of showing the blocks there. Why?

  • Denys

    Thanks!!!!!!!!

  • Mattis

    Thanks Great post :)

  • Vijaysahu Intercom

    I don’t think this is right way to change category page layout..

  • Vijaysahu Intercom

    I don’t think this is right way to change category page layout..

  • peter

    Could you tell me how we could set a theme layout for all theme. as i am a theme and that is ative also but that theme is only showing on home page no one else page..:( If you could help me that will be thankful……