Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

change text colour in info boxes


pinbrook

Recommended Posts

Posted

Hi Newbie here,

 

I've been playing with oscommerce for a day or so and theres a few things I'd like help with just to push me on ..

 

I'd like to have the info boxes with a dark background and white text. my body is white background black text. How do I change the class of he text for the info boxes only?

 

how do I remove "this product was added to the store on december 22" ?

 

Can I remove the info box for languages I only want to have an English version so don't see the need for the box

 

Many thanks..

Posted
How do I change the class of the text for the info boxes only?

Open catalog/stylesheet.css, and change the values of .infoBox (the dark grey-blue headings of the boxes), .infoBoxContents (the light grey main parts of the boxes), and possibly TD.infoBoxHeading.

 

Can I remove the info box for languages I only want to have an English version so don't see the need for the box

Open column_right.php in catalog/includes/ and comment out the line that includes the language box.

 

how do I remove "this product was added to the store on december 22"?

Do a search for "TEXT_DATE_ADDED" in catalog/product_info.php (near line 212 in my file) and comment out the PHP code that echoes that.

Posted

Ok, slow progress here.....

 

I've changed the text to white....the class is

 

.infoBoxContents {

background: Maroon;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

color : White;

}

 

I just added color: White;

 

However I now need to change the link color too, cos that is also black I tried adding

 

A.infoBoxContents {

color : White;

}

 

but this has no effect

Posted

You almost have it right...

 

Try adding this to stylesheet.css:

.infoBoxContents A:link {
   COLOR: #00cc99; TEXT-DECORATION: none
}
.infoBoxContents A:visited {
   COLOR: #00cc99; TEXT-DECORATION: none
}
.infoBoxContents A:hover {
   COLOR: #ffffff; TEXT-DECORATION: none
}

I just found this and haven't actually tested it, but it's working where I found it, so it should work for you as well.

Archived

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

×
×
  • Create New...