Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / No Right Sideboxes On Main Page ?

No Right Sideboxes On Main Page ?

Locked

Views: 1,448

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
1 Jan 2008, 8:07 AM
#1
adamson avatar

adamson

New Zenner

Join Date:
Dec 2007
Posts:
62
Plugin Contributions:
0

No Right Sideboxes On Main Page ?

Hi, I am trying to set up my store so that the main page has all the sideboxes on the left side (so I can use the space on the right for other stuff). I switched all the sideboxes to the left side in admin but it still doesnt allow me to use the empty space on the right (where any sideboxes set to "right" would go).

How can I achieve this? And how can I set it up for only the main page?

Thanks in advance!

1 Jan 2008, 10:23 AM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: No Right Sideboxes On Main Page ?

Configuration > Layout Settings > Column Right Status - Global.

Turning the right column off for the home page only is a relatively simple edit in /includes/templates/your_template/common/tpl_main_page.php. Follow the instructions in the comments at the top to add
if ($this_is_home_page) {
$flag_disable_right = true;
}

However, this will not switch boxes from left to right, it will simply disable any that are set for the right. Having certain boxes on the left for the home page and on the right for other pages is a more complex bit of coding.

You might best accomplish it by having a separate copy of tpl_main_page.php for the home page, in a /your_template/index_home/ folder. In that copy, you could move the code that displays #navColumnTwo up so it executes just after #navColumnOne, and in the same <td>. You would not disable #navColumnTwo.

1 Jan 2008, 6:32 PM
#3
adamson avatar

adamson

New Zenner

Join Date:
Dec 2007
Posts:
62
Plugin Contributions:
0

Re: No Right Sideboxes On Main Page ?

I am still new to zen cart, I am using the classic template and I dont have a common folder in the classic template folder. Do I just copy the common folder from the template default folder?

1 Jan 2008, 7:55 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: No Right Sideboxes On Main Page ?

You don't want to copy the whole /common/ folder with its contents to /classic/.

You want to create a new /common/ folder in /classic/ and copy tpl_main_page.php into it, then edit that copy.

You should also look at the FAQ/tutorials on creating a custom template so your changes are safe when you upgrade to a new version.

1 Jan 2008, 8:46 PM
#5
adamson avatar

adamson

New Zenner

Join Date:
Dec 2007
Posts:
62
Plugin Contributions:
0

Re: No Right Sideboxes On Main Page ?

Got it, thanks guys!

1 Jan 2008, 8:48 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: No Right Sideboxes On Main Page ?

... and before doing that PLEASE set up a custom template or you will lose all the customizations you are making.