Forums / Templates, Stylesheets, Page Layout / How to turn off side box just on the main page?

How to turn off side box just on the main page?

Locked

Views: 1,595

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
12 Feb 2008, 2:08 AM
#1
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

How to turn off side box just on the main page?

Hello,

I want to turn off side boxes just on the main page (still want side boxes to show up in other pages).

How can I do that?

lina

12 Feb 2008, 2:49 AM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: How to turn off side box just on the main page?

lina0962:

Hello,

I want to turn off side boxes just on the main page (still want side boxes to show up in other pages).

How can I do that?

lina

open includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php

add the following declaration

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

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.