Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / remove sideboxes from main page

remove sideboxes from main page

Views: 576

Results 1 to 4 of 4
22 Sep 2011, 4:45 PM
#1
johnybravo avatar

johnybravo

Zen Follower

Join Date:
Jun 2011
Posts:
107
Plugin Contributions:
0

remove sideboxes from main page

Hi, I want to remove the sideboxes from the index page only but when ever I try to comment out what I think is the correct area of code from tpl_main_page the whole page turns blank.
Can anyone shed any light?
thanks,
john
https://www.curvesandcorsets.com

22 Sep 2011, 4:52 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: remove sideboxes from main page

Rather than try to comment out the right bit of code, set a flag following the instructions in the top of tpl_main_page.php, like

if ($this_is_home_page) {
  $flag_disable_left = true;
  $flag_disable_right = true;
}
22 Sep 2011, 8:27 PM
#3
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: remove sideboxes from main page

Hi John,

I would create an index_home.css file containing:

#navColumnOne{display:none;}

If you have it in your css folder, it will be read only when the home page is loaded and will eliminate your left column, extending contents to the left edge of the page.

If you only want to remove the Categories side box, use

#categories{display:none;}

If you only want to remove the Important Links side box, use

#ezpages{display:none;}

I hope this helps. :smile:

25 Sep 2011, 10:54 AM
#4
johnybravo avatar

johnybravo

Zen Follower

Join Date:
Jun 2011
Posts:
107
Plugin Contributions:
0

Re: remove sideboxes from main page

Thanks gjh42, every day is a school day!