Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Unable to disable rightcolumn on main index page

Unable to disable rightcolumn on main index page

Views: 916

Results 1 to 4 of 4
23 Mar 2012, 2:47 PM
#1
maryf avatar

maryf

New Zenner

Join Date:
Apr 2008
Posts:
29
Plugin Contributions:
0

Unable to disable rightcolumn on main index page

I am trying to disable the right column on the front page (main page) for my site. I have followed the instructions given here https://www.zen-cart.com/tutorials/index.php?article=233

I have tried

if (in_array($current_page_base,explode(",",'index.php?main_page')) ) {
    $flag_disable_right = true;
  }
if (in_array($current_page_base,explode(",",'main_page')) ) {
    $flag_disable_right = true;
  }

Also tried

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

but none of this seems to work.

I have disbled the left column via Layout Settings in Admin and only want the right column for all pages except the main entry page which I presume is called index.php?main_page ??

What am doing wrong? Would appreciate some help. Thanks.:P

Using: 1.3.9h

23 Mar 2012, 2:49 PM
#2
Kim avatar

Kim

Obaa-san

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

Re: Unable to disable rightcolumn on main index page

Your URL? Where did you get your template?

23 Mar 2012, 3:14 PM
#3
maryf avatar

maryf

New Zenner

Join Date:
Apr 2008
Posts:
29
Plugin Contributions:
0

Re: Unable to disable rightcolumn on main index page

Well blow me, I just tried it on the live shop and it worked using this:

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

It won't work on localhost though. I copied all live shop files to the localhost folder so everything should be the same... Strange..

I have a template I purchased from zenflavour back when I was using ZC 1.3.8. When I upgraded to 1.3.9 I did not upgrade the template but merged it into the new ZC. It has been working just fine for years.

23 Mar 2012, 3:20 PM
#4
Kim avatar

Kim

Obaa-san

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

Re: Unable to disable rightcolumn on main index page

Glad you got it working.