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.
No, I'm running 1.3.6 - What does that do to your recomendation? Can I still go ahead and give your suggestions a try?
You can try, but if in the source, it doesn't say:
<body id="indexHomeBody">
The css I gave you won't work only for the home page. Go ahead and try with the new tpl_main_page.php text file I uploaded, and take a look at your home page source.
We can probably figure out some way around it, but I'd recommend 1.3.7 anyway.
I'm running out the door to meet friends for dinner but I've quick slapped down that new tpl_main and it looks good. The source says:
<body id="indexHomeBody">
And the sideboxes are hidden.
PittiVintage
Believe me, I'd like to bump-up to 1.3.7 but upgrading is yet another thing I've yet to learn!!
Beautiful! All recomedations worked like a charm, despite the fact I'm running 1.3.6. Thanks!!
PittiVintage
Question concerning your earlier recomendation to alter the color of content_bg.gif so as to change the background color of the center section: Using Photoshop I've attempted to change the color but have been unsuccessful. This is odd because I do this sort of thing all the time. Any idea why this particular image would be difficult to alter? It just won't seem to take the new color, no matter what color I select. I've also saved it as a .jpg and a .psd and attempted the change but again without success.Could the fact that it is an extremely thin image play into it?
Again, thanks for those earlier recomendations - This template rocks and I really appreciate you taking your time to help me fine-tune.
Tim