wolfmann999 Posted February 23, 2010 Posted February 23, 2010 Hi, I am try to get the cellpadding set to '0' for the categories info box only. I am happy with a cellpadding of 4 on the other boxes. From the classes/boxes.php file I have found the following. function infoBoxContents($contents) { $this->table_cellpadding = '4'; $this->table_parameters = 'class="infoBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''), 'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''), 'params' => 'class="boxText"', 'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : ''))); } How can I put a condition in here to have $this->table_cellpadding = '0'; but only the categories infobox? Any help very much appreciated. Kind regards, Wolfmann --
Guest Posted February 23, 2010 Posted February 23, 2010 Nick, Create a new class in the stylesheet that includes your box parameters. The change the class in the box you want to change to the new class. Chris
Recommended Posts
Archived
This topic is now archived and is closed to further replies.