Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing the background color of the category box *only*


Puckle

Recommended Posts

Hello,

 

I was wondering if anyone could tell me what I should do to change the categories and languages boxes background color, without changing the boxes on the rest of the site.

 

 

I don't mind if all the other boxes in the columns are changed as well, because I commented them all out, except for those two. However, I don't want any of the boxes in the main area to change color, I want them white.

 

 

I've tried everything in the stylesheet, but if I change .infoBox, they all change...... and when I add background color to TABLE.productListing it ignores it.

 

Here's a link: chaperon

 

 

I want the sidebar boxes (categories and languages) to stay that color. But I want all the other boxes to be white.

 

 

I'd really appreciate any help!

Link to comment
Share on other sites

Hello,

 

I was wondering if anyone could tell me what I should do to change the categories and languages boxes background color, without changing the boxes on the rest of the site.

 

 

I don't mind if all the other boxes in the columns are changed as well, because I commented them all out, except for those two. However, I don't want any of the boxes in the main area to change color, I want them white.

 

 

I've tried everything in the stylesheet, but if I change .infoBox, they all change...... and when I add background color to TABLE.productListing it ignores it.

 

Here's a link: chaperon

 

 

I want the sidebar boxes (categories and languages) to stay that color. But I want all the other boxes to be white.

 

 

I'd really appreciate any help!

 

You need to do the following:

  1. Create a new class in your stylesheet such as newinfoboxstyle.
    The css will look something like this (add your own to what you need):
    .newinfoboxstyleContents {
    background: transparent;
    color: white;
    }


  2. Copy the "class infobox" code from includes/classes/boxes.php. This code begins with
    class infobox extends tableBox {


    and ends wiith

    return $this->tablebox($info_box_contents); } }


  3. Paste the above code in the same file but replace all instances of "infobox" to "newinfoboxstyle"
  4. Now open your includes/boxes/categories.php file and change the class references from infobox to newinfoboxstyle

Hope this helps,

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...