Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to change the color of the box headers?


Evo-L

Recommended Posts

Posted

How do I go about changing the color of the side boxes headers?

 

This is my site...

 

www.darksideengineering.com . Its still under construction, and Im having trouble changing the color next to the "categories", "manufacturers" to the background color.

 

Also, where it says "new products for march", how do I change that font color to black??

 

Thanks all

Posted

The answer to your first question is here in your stylesheet:

 

TD.infoBoxHeading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 font-weight: bold;
 background: #bbc3d3;
 color: #ffffff;
}

Specifically, this line:

 

  background: #bbc3d3;

I don't know what color you want it to be.

 

The answer to the second question would be there as well:

 

  color: #ffffff;

Change that to:

 

  color: #000000;

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Awesome! thanks.

 

Now, can I change the "new products for march" into a picture just like my other boxes? If so, where do I go for that?

Posted

That would involve minor edit to two files.

 

Do you have an image in mind?

:unsure:

 

Such as the "What's New?" image from the left column, maybe?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
That would involve minor edit to two files.

 

Do you have an image in mind?

:unsure:

 

Such as the "What's New?" image from the left column, maybe?

:unsure:

 

Yes, that will work. Or Can I make my own image that says "New products", then just direct it to the uploaed picture?

Posted

You can make one and upload it into your /images folder and use it.

 

For now, look in this file:

 

/includes/modules/new_products.php

 

Close to the top of it, will be a line that looks like this:

 

  $info_box_contents[] = array('text' => sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')));

Change it to this:

 

//  $info_box_contents[] = array('text' => sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')));
// new code added 03/08/08
 $info_box_contents[] = array('text' => tep_image(DIR_WS_IMAGES . 'whatsnewheader.png'));

That will at least give you an idea of what things might look like, I think.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Are you sure the code is right? I copied it exactly, and it gave me a syntax error... Thanks for the help though, I really appreciate it.

Posted

I worked for me.

:huh:

 

I have a "test catalog" where I can try new code, and I didn't get an error.

 

What you see there is copy/pasted from my "test catalog".

 

I don't know what to say.

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...