cancel
Showing results for 
Search instead for 
Did you mean: 

How to customize a cms page in a new theme?

SOLVED

How to customize a cms page in a new theme?

Hi all,

I have defined two themes: "default" and "mobile" and I  have created a page that should have a different layout in the mobile theme. How can I modify the layout (I should remove the left column) of the page only in the mobile layout?

 

And if I would change the layout of all the CMS page of the mobile theme how can I remove the left colum on all of them?

 

Thank you very much

 

claudio

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: How to customize a cms page in a new theme?

Hey ioclaudio,

 

Layout of CMS page can be found by the following path:
 app/design/frontend/MOBILE/THEME/layout/cms.xml (1)

 

If you do not have this file in your theme, you can  copy it from the base theme, this is the path:
 app/design/frontend/base/default/layout/cms.xml (2)

 

In order to delete left column in mobile theme, go to the file(1) and change

<cms_page translate="label">

to 

<cms_page translate="label">
<remove name="left"/>

Hope it can help you.

Regards.

 

View solution in original post

Re: How to customize a cms page in a new theme?

thank you very much this works for me

View solution in original post

2 REPLIES 2

Re: How to customize a cms page in a new theme?

Hey ioclaudio,

 

Layout of CMS page can be found by the following path:
 app/design/frontend/MOBILE/THEME/layout/cms.xml (1)

 

If you do not have this file in your theme, you can  copy it from the base theme, this is the path:
 app/design/frontend/base/default/layout/cms.xml (2)

 

In order to delete left column in mobile theme, go to the file(1) and change

<cms_page translate="label">

to 

<cms_page translate="label">
<remove name="left"/>

Hope it can help you.

Regards.

 

Re: How to customize a cms page in a new theme?

thank you very much this works for me