Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Removing Column from Main Page

Removing Column from Main Page

Views: 642

Results 1 to 4 of 4
16 Jan 2012, 6:41 AM
#1
johnga avatar

johnga

Zen Follower

Join Date:
Oct 2005
Location:
San Francisco
Posts:
100
Plugin Contributions:
0

Removing Column from Main Page

I'm trying to remove the right column from my main page - I found in the FAQ instructions to modify my tpl_main_page by inserting this code:

if ($current_page_base == 'index' and $cPath == '')
$flag_disable_right = true;

which I have done to no effect. Am I missing something? Thanks

I'm in the process of upgrading to 1.5 and would like a plain landing page for my main page.

16 Jan 2012, 11:58 AM
#2
pg_dev avatar

pg_dev

New Zenner

Join Date:
Jan 2012
Posts:
2
Plugin Contributions:
0

Re: Removing Column from Main Page

Make sure you have inserted the condition into the override folder, and that you don't have a condition later on that will set $flag_disable_right to false. I have always used the following

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

Hope it helps.

16 Jan 2012, 4:22 PM
#3
johnga avatar

johnga

Zen Follower

Join Date:
Oct 2005
Location:
San Francisco
Posts:
100
Plugin Contributions:
0

Re: Removing Column from Main Page

Thanks - I'm using the apple-zen template, so maybe I need to post over on that thread. So far i can't get the tpl-main_page file to have any effect.

16 Jan 2012, 8:49 PM
#4
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: Removing Column from Main Page

Try this code in templates>yourtemplate>templates>tpl_index_default.php
Just under this

<div class="centerColumn" id="indexDefault">

add this

if (in_array($current_page_base,explode(",",'indexHome')) ) {
$flag_disable_left = true;