PittiVintage
Hi Jade - Sorry but I don't see the attatched txt file... I went to downloads to get the tpl_main_page.php from version 1.5 but only 1.4 is available.
PittiVintage
Hi Jade - Sorry but I don't see the attatched txt file... I went to downloads to get the tpl_main_page.php from version 1.5 but only 1.4 is available.
Last edited by MeltDown; 2 Mar 2007 at 03:31 PM. Reason: My computer hates me
Hmmm... As you can see from this link, the alignment is all screwed up after I replaced the tpl_main_page.php:
PittiVintage
I am not sure what was the best way to convert that txt file to a php, however. I could have messed it up in transit. Basically all I did was copy the new text you provided, opened up tpl_main_page.php in my text editor, (Arachnophilia) selected all the text and then pasted the new text in it's place.
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.![]()
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:
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?Code:if ($this_is_home_page == true) { $flag_disable_left = true; $flag_disable_right = true; }
Thanks again,
Tim
Oppss...! Here's the link to the site in question:
PittiVintage
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.