Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

change background color


nikko50

Recommended Posts

Posted

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".

Posted

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 ======>>>>>.

Posted

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.

Posted

And the actually flash video for changing the background color says

"Not Found"

Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...