Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Home page layout, Need help!

Home page layout, Need help!

Locked

Views: 1,099

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
11 Mar 2008, 4:56 PM
#1
gfds avatar

gfds

New Zenner

Join Date:
Mar 2008
Posts:
3
Plugin Contributions:
0

Home page layout, Need help!

How do I turn off the both side columns, and make the center spread the whole width, only on the home page!?

Thank You
Sam

11 Mar 2008, 5:17 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Home page layout, Need help!

Edit /includes/templates/your_template/common/tpl_main_page.php. There are instructions in the comments at the top of the file.

if ($this_is_home_page) {
$flag_disable_left = true;
$flag_disable_right = true;
}

The center will automatically expand to fill the space.

11 Mar 2008, 7:39 PM
#3
gfds avatar

gfds

New Zenner

Join Date:
Mar 2008
Posts:
3
Plugin Contributions:
0

Re: Home page layout, Need help!

Glenn, Thanks for your help.
I noticed that although this works with the default template from Zen Cart, for the Cherry Zen template, it only removes the columns but the center dos not spread. Do you have any experience with this template?

Sam

11 Mar 2008, 8:17 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Home page layout, Need help!

No, I don't. Some templates have hard-coded widths in various places.

Your best bet is to post in the appropriate support thread for the template.

You might also look through the stylesheet. The Firefox Web Developer and Firebug tools can help you find where an element is controlled.