
Originally Posted by
kika_6
I'm trying to change the background color of the center column. I'd like it to be different for the index page and the product pages. In experimenting on my own, it seems that what I need to do is assign a class to the "<td>" containing the center column content. The problem is making it dynamic, so that the index page is different from the product pages. The line I'm trying to edit in "tpl_main_page.php" is:
<td class="center<?php echo ($xxxx); ?>" valign="top">
Hopefully, the class will then read something like: "centerindex" or "centercategory".
I have tried various definitions for the "$xxxx" above. My thought is that I need whichever variable tells the system which file to put in the center column, but being a newcomer to both php and zencart, I can't figure out which variable that is. I don't need any specific name, I just need to vary between the index and product pages and be something consistent which I can style.
I'd be very appreciative of any ideas or of any better ways to go about this.
-Jessica