Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change info box background


Guest

Recommended Posts

Knifeman,

 

In my osc version 2.2 ms2, i paid someone to do my header and footer and they also changed my infoboxes but they did it with some .jpg, not through the stylesheet and i was trying to duplicate this on the new install that i am changing over too.

 

you can see this here www.connectorsupply.com

 

if you look at the page source you can see the info box background is a picture and so is the title of the info box background.

 

I need to figure out how to duplicate this in rc2 version.

 

Thanks,

Joe

Link to comment
Share on other sites

Knifeman,

 

In my osc version 2.2 ms2, i paid someone to do my header and footer and they also changed my infoboxes but they did it with some .jpg, not through the stylesheet and i was trying to duplicate this on the new install that i am changing over too.

 

you can see this here www.connectorsupply.com

 

if you look at the page source you can see the info box background is a picture and so is the title of the info box background.

 

I need to figure out how to duplicate this in rc2 version.

 

Thanks,

Joe

You can still add an image as the background for info boxes and info box headers.

Here is an example

TD.infoBoxHeading {

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

font-size: 10px;

font-weight: bold;

background: #bbc3d3;

background-image: url(images/gradient1.png);

color: #ffffff;

}

 

Change the image name to the one you have uploaded.

 

Tim

Link to comment
Share on other sites

knifeman,

 

Thanks,

That did work but the image does not fit like it does on my ms2.2 osc. I am assuming that i will have to edit the image to fit? How do I know what size to make the new image?

 

Also which TD do i add my image too, to change the background of the infoboxes to a picture?

 

Thanks for your help

Link to comment
Share on other sites

knifeman,

 

Thanks,

That did work but the image does not fit like it does on my ms2.2 osc. I am assuming that i will have to edit the image to fit? How do I know what size to make the new image?

 

Also which TD do i add my image too, to change the background of the infoboxes to a picture?

 

Thanks for your help

That code is from my stylesheet in an RC2a store.

If your image is too small, then add the repeat property.

there is a style for infobox heading and one for infobox contents.

 

Tim

Link to comment
Share on other sites

Thank you very much for your help.

 

That did work. But how do I make it so the background of just the "new products" box is still white?

Link to comment
Share on other sites

Thank you very much for your help.

 

That did work. But how do I make it so the background of just the "new products" box is still white?

If you want the new products different than the infoboxes;

Change the class designation for that box, then create the new code in stylesheet.css

 

If you want it the same as infoboxes;

asign the infobox class to the new products box

 

Tim

Link to comment
Share on other sites

That lost me but I will try to figure that out. What file do I need to edit to Change the class designation for that box?

You got me there.

I believe the new products box is called from the module new_products in includes/modules/new_products.php as opposed to the what's new box in column left.

but I don't see any class defined for the box in that file. At least not outright like the boxes in the left column. Hopefully somebody else can chime in with the correct file.

 

Tim

Link to comment
Share on other sites

That lost me but I will try to figure that out. What file do I need to edit to Change the class designation for that box?

See if this link helps:

Click here

 

Most of the answers are what we already discussed, but at the bottom is some new info.

 

Tim

Link to comment
Share on other sites

Thank you very much.

That did work, adding a bgcolor to the params of the new_products!!!!!!!!!!!!!!

Glad it worked for you. I tried it and my grey looks orange. I tried white and it comes up yellow.

 

Tim

Link to comment
Share on other sites

Ok, thought it was good.

 

BUT

 

 

If there are less than 9 products then it puts the background pic from the stylesheet in the spots to fill the box. Like if you have 7 products and 2 blank spots the blank spots are the background color of the infobox that i changed in the stylesheet. Also all the backgrounds of the, example contact us form background is info box background and so is the background of the box that has (continue) on it on some pages.

 

please help someone. I need just the infoboxes on the main paige my background picture and all others white.

 

Thanks,

Joe

Link to comment
Share on other sites

I think I need to keep the stylesheet back to white.

Then change each of the boxes I want to have the background.

 

I just need to know how and where to put the code into the file /catalog/includes/boxes/categories.php

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...