Guest Posted April 21, 2010 Share Posted April 21, 2010 What file do I need to edit to change the background of my info boxes? MS2.2 RC2 Link to comment Share on other sites More sharing options...
knifeman Posted April 21, 2010 Share Posted April 21, 2010 What file do I need to edit to change the background of my info boxes? MS2.2 RC2 This is done via the stylesheet in your catalog or root directory. This page lists the definitions: http://www.oscommerce.info/kb/osCommerce/Catalog_Area/Design_and_Layout/54 Tim Link to comment Share on other sites More sharing options...
Guest Posted April 21, 2010 Share Posted April 21, 2010 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 More sharing options...
knifeman Posted April 21, 2010 Share Posted April 21, 2010 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 More sharing options...
Guest Posted April 22, 2010 Share Posted April 22, 2010 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 More sharing options...
knifeman Posted April 22, 2010 Share Posted April 22, 2010 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 More sharing options...
Guest Posted April 22, 2010 Share Posted April 22, 2010 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 More sharing options...
knifeman Posted April 22, 2010 Share Posted April 22, 2010 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 More sharing options...
Guest Posted April 22, 2010 Share Posted April 22, 2010 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? Link to comment Share on other sites More sharing options...
knifeman Posted April 22, 2010 Share Posted April 22, 2010 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 More sharing options...
knifeman Posted April 22, 2010 Share Posted April 22, 2010 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 More sharing options...
Guest Posted April 22, 2010 Share Posted April 22, 2010 Thank you very much. That did work, adding a bgcolor to the params of the new_products!!!!!!!!!!!!!! Link to comment Share on other sites More sharing options...
knifeman Posted April 22, 2010 Share Posted April 22, 2010 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 More sharing options...
Guest Posted April 23, 2010 Share Posted April 23, 2010 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 More sharing options...
Guest Posted April 23, 2010 Share Posted April 23, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.