Forums / Templates, Stylesheets, Page Layout / Can you remove side boxes just from home page?

Can you remove side boxes just from home page?

Locked

Started by mcanes on 20 May 2007, 2:19 PM · Views: 3,272

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
20 May 2007, 2:19 PM
#1
mcanes avatar

mcanes

Zen Follower

Join Date:
May 2007
Posts:
210
Plugin Contributions:
0

Can you remove side boxes just from home page?

Is it possible to remove all the side boxes from just the main page of my cart (zen 1.3.7)? I would like to keep the look and feel of my header and footer, however I want to make have my own HTML on the main page.

Once I get into the cart though I would like to re-introduce some of the side boxes.

Thanks is advance.

20 May 2007, 3:14 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Can you remove side boxes just from home page?

Easy.

In /includes/templates/your_template/common/tpl_main_page.php, add this: php if ($this_is_home_page) { $flag_disable_left = true; $flag_disable_right = true; } just before this```php
$header_template = 'tpl_header.php';
$footer_template = 'tpl_footer.php';
$left_column_file = 'column_left.php';
$right_column_file = 'column_right.php';


And you can put all of your home page HTML in define_main_page.php, in admin > Tools > Define Page Editor.
20 May 2007, 5:07 PM
#3
mcanes avatar

mcanes

Zen Follower

Join Date:
May 2007
Posts:
210
Plugin Contributions:
0

Re: Can you remove side boxes just from home page?

Great... It worked just how I wanted. Thanks so much. This is a great community.

17 Nov 2008, 10:24 PM
#4
fireflyz avatar

fireflyz

New Zenner

Join Date:
May 2007
Location:
Los Angeles
Posts:
89
Plugin Contributions:
0

Re: Can you remove side boxes just from home page?

Hi, I like to do the same thing on Login page. What would I use instead of "$this_is_home_page"? I tried "$this_is_login_page" and didn't work.

Thanks you!

18 Nov 2008, 3:01 AM
#5
gjh42 avatar

gjh42

Black Belt

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

Re: Can you remove side boxes just from home page?

The home page is the only one that has a "this_is" variable.

For other pages, you can use```php
if ($current_page_base == 'whatever_page') {
//your code
}

18 Nov 2008, 5:32 AM
#6
fireflyz avatar

fireflyz

New Zenner

Join Date:
May 2007
Location:
Los Angeles
Posts:
89
Plugin Contributions:
0

Re: Can you remove side boxes just from home page?

gjh42:

The home page is the only one that has a "this_is" variable.

For other pages, you can use```php
if ($current_page_base == 'whatever_page') {
//your code
}


Thank you! that worked perfectly! :thumbsup: