ANNIE11 Posted August 31, 2005 Share Posted August 31, 2005 Hi All While - Adding different colors for each box This will let you have a different colour background in each box (categories, information, bestsellers, etc.). It requires you to modify a minimum of 3 files. -------------------------------------------------------------------------------- 1. Open /catalog/includes/classes/boxes.php Find the function infoBoxContents Replace: function infoBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="infoBoxContents"'; $info_box_contents = array(); with: function infoBoxContents($contents) { global $css_class; $this->table_cellpadding = '3'; $this->table_parameters = 'class="'.$css_class.'"'; $info_box_contents = array(); -------------------------------------------------------------------------------- 2. Now Open one of the boxes, lets use /catalog/includes/boxes/information.php Replace: <!-- information //--> <tr> <td> <?php $info_box_contents = array(); with: <!-- information //--> <tr> <td> <?php global $css_class; $css_class = "infoBoxContents5"; $info_box_contents_info = array(); -------------------------------------------------------------------------------- 3. infoBoxContents5 will have to be added to /catalog/stylesheet.css and could look something like this: TABLE.infoBoxContents5 { background-color: #FFFFF1; } Note: This hack will allow you to change all the boxes to a different color from each other. If you want to change the color to be the same in all boxes, but different than the default color you need to edit the stylesheet.css: infoBox & infoBoxContents to set the background color ---Now I have double boxes in the right column and the search box expands across the page. Please help!!! I have gone over and and over 10 times. Cant resol problem myself. Thanks, Annie :( My Webpage Link to comment Share on other sites More sharing options...
Guest Posted August 31, 2005 Share Posted August 31, 2005 somehow you have this line before the doctype in your page <body bgcolor="#000000" text="#339933" link="#33FF00" alink="#666600" vlink="#666666"> and this causes all sorts of errors. Find how this is inserted at the beginning of your index.php Then after the new products in index.php somehow you close a table tag but a row tag is left open. There might be some leftover tags with the contribution you integrated. Link to comment Share on other sites More sharing options...
ANNIE11 Posted August 31, 2005 Author Share Posted August 31, 2005 somehow you have this line before the doctype in your page <body bgcolor="#000000" text="#339933" link="#33FF00" alink="#666600" vlink="#666666"> and this causes all sorts of errors. Find how this is inserted at the beginning of your index.php Then after the new products in index.php somehow you close a table tag but a row tag is left open. There might be some leftover tags with the contribution you integrated. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
ANNIE11 Posted August 31, 2005 Author Share Posted August 31, 2005 somehow you have this line before the doctype in your page <body bgcolor="#000000" text="#339933" link="#33FF00" alink="#666600" vlink="#666666"> and this causes all sorts of errors. Find how this is inserted at the beginning of your index.php Then after the new products in index.php somehow you close a table tag but a row tag is left open. There might be some leftover tags with the contribution you integrated. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
ANNIE11 Posted August 31, 2005 Author Share Posted August 31, 2005 somehow you have this line before the doctype in your page <body bgcolor="#000000" text="#339933" link="#33FF00" alink="#666600" vlink="#666666"> and this causes all sorts of errors. Find how this is inserted at the beginning of your index.php Then after the new products in index.php somehow you close a table tag but a row tag is left open. There might be some leftover tags with the contribution you integrated. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
ANNIE11 Posted August 31, 2005 Author Share Posted August 31, 2005 Thanks enigma1, I'll start looking in the index for the open tags Annie11 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.