nikko50 Posted November 14, 2007 Posted November 14, 2007 Hello. Where do I change the background for the individual boxes such as " New Products", "Search", "What's New"? I know the stylesheet contains the infoBoxContents class but I was hoping to give the boxes their own specific class like class="newProductsContents" or class="whatNewContents".
♥geoffreywalton Posted November 14, 2007 Posted November 14, 2007 The style sheet is the place. For how to do it follow the links in my footer Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
nikko50 Posted November 14, 2007 Author Posted November 14, 2007 Very informative site you have though it did not help with my issue of changing the individual boxes to unique styles. If anyone can help with this please let me know.
Guest Posted November 18, 2007 Posted November 18, 2007 And the actually flash video for changing the background color says "Not Found"
Guest Posted November 18, 2007 Posted November 18, 2007 Try This http://www.oscommerce.info/kb/osCommerce/C...n_and_Layout/54
nikko50 Posted November 21, 2007 Author Posted November 21, 2007 I figured it out in case someone needs this mod. The class file "boxes" needs to be changed. Just extend a class like below and create a new entry in the css file to suit your needs. I'm extending the class for each box. //CREATED FOR THE WHATS NEW BOX BY NK 1121 class infoBoxWhatsNew extends tableBox { function infoBoxWhatsNew($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->infoBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="infoBox"'; $this->tableBox($info_box_contents, true); } function infoBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="infoBoxContentsWhatsNew"'; $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'] : ''))); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } } //END MOD
Recommended Posts
Archived
This topic is now archived and is closed to further replies.