MeltDown:
Jade - Originally I had posted this question in the Zen forum under General questions to try and give you a break but I've been directed back to you. :no:
Sorry, I just can't seem to give you a break.
If possible, I would like to hide the sideboxes on the main page only. To this end I placed the following code into tpl_main_page.php:
if ($this_is_home_page == true) {
$flag_disable_left = true;
$flag_disable_right = true;
}
>
> It works, as the sideboxes are hidden on that page. However, the items on that page are all pulled to the right. It sounds as though this may be an Apple Zen conflict. Is there any way to achieve this desired result in Apple Zen?
>
> Thanks again,
>
> Tim
Hi Tim,
No, I'm glad you've been posting, the issues you've been having have brought to light some issues I've been having with the template. And I've NOW figured out how to get the code right so people should not keep having the same extra </div> or missing an </div> issues they've been having.
I have a new tpl_main_page.php for you. (Attached as a txt file). Within the attached file, I've also set up the code so the site checks if it is the home page and the sideboxes won't show up if it is.
As for the issue of the page pulling to the right, you could style this with zen cart 1.3.7's new home page only css tag, #indexHomeBody. However I notice on your home page's source, it has:
<body id="indexBody">
INSTEAD OF
<body id="indexHomeBody">
Are you not using 1.3.7?
If you are using 1.3.7, and we get that fixed, you could put this in your css:
#indexHomeBody .centerColumn {
width: 95%!important;
float: left!important;
}
you'd also have to add this:
#indexHomeBody #centerColumnWrapper2 {
background:#ffffff!important;
}
to get the entire home page's background white, instead of white/grey.