Forums / Templates, Stylesheets, Page Layout / Turn off left/right column for certain pages

Turn off left/right column for certain pages

Locked

Views: 1,737

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
26 Feb 2008, 10:33 PM
#1
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Turn off left/right column for certain pages

Hi,

How do I turn off the left/right column when on certain pages such as the checkout?

Thx

26 Feb 2008, 11:32 PM
#2
clydejones avatar

clydejones

Deceased

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

Re: Turn off left/right column for certain pages

Berserker:

Hi,

How do I turn off the left/right column when on certain pages such as the checkout?

Thx

Check here in the Tutorials/FAQs section

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

27 Feb 2008, 1:27 AM
#3
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Turn off left/right column for certain pages

Thanks a lot!!!

27 Feb 2008, 1:55 AM
#4
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Turn off left/right column for certain pages

Im using the following styles instead of the one in the tutorials/faqs.

//add page names that you wantto disable left and right columns
$center_column_only = array('login','account');
// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,$center_column_only) ) {
$flag_disable_right = true;
$flag_disable_left = true;
}