Guest Posted February 24, 2005 Share Posted February 24, 2005 Hello All, I'm trying to change just the background color for the "New Products For (month)", where my new products are listed without changing all the other infoboxes. In the CSS file I added another .infoBoxNewProductsContents, but I cannot locate where to change this in the file to direct just this infobox to. Can someone please help? Thanks, James Link to comment Share on other sites More sharing options...
Guest Posted February 25, 2005 Share Posted February 25, 2005 For those wanting to know the answer to my post... :D Step 1 In catalog/sylesheet.css - Make a copy of: (make sure you leave the org) .infoBoxContents { background: #DEDFCE; font-family: Verdana, Arial, sans-serif; font-size: 10px; } Add new name to something like: .infoBoxNewProductsContents { background: #DEDFCE; < -- make your color change font-family: Verdana, Arial, sans-serif; font-size: 10px; } It should now look like this in your stylesheet.css file, example below: .infoBoxContents { background: #DEDFCE; font-family: Verdana, Arial, sans-serif; font-size: 10px; } .infoBoxNewProductsContents { background: #DEDFCE; font-family: Verdana, Arial, sans-serif; font-size: 10px; } Step 2 In catalog/includes/classes/boxes.php Find line# 143 and change infoBoxContents to infoBoxNewProductsContents That's it! Link to comment Share on other sites More sharing options...
rommany Posted March 16, 2005 Share Posted March 16, 2005 could someone please help i tried this and it didnt work just come up with an error report so i put it back to how it was now i have warnings Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/j/e/jellybabys.co.uk/htdocs/www/includes/classes/boxes.php:180) in /data/members/paid/j/e/jellybabys.co.uk/htdocs/www/includes/functions/general.php on line 29 this part is only coming up when i click on account pls look My site and i didnt back up before i started as it was only a small change silly me. Thxs dave Link to comment Share on other sites More sharing options...
rommany Posted March 16, 2005 Share Posted March 16, 2005 someone here must have a clue what i need to do please Link to comment Share on other sites More sharing options...
rotsky Posted March 16, 2005 Share Posted March 16, 2005 i tried this and it didnt work just come up with an error report so i put it back to how it was now i have warnings Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/j/e/jellybabys.co.uk/htdocs/www/includes/classes/boxes.php:180) in /data/members/paid/j/e/jellybabys.co.uk/htdocs/www/includes/functions/general.php on line 29 Something suggests you haven't put it back exactly as it was. Try copying over the boxes.php file from the original distribution. Line 180 in your current version is making some kind of output - perhaps an echo statement os some such. Line 29 in general.php uses header('Location: ' . $url); to redirect the visitor's browser to another page. But it can't do that if some output has already been made. Sometimes even a blank line can do it. In fact, I notice that in viewing the source code for that problem page, before the error message there's a blank line followed by: <font color='#ff0000'><br /> See if you have anything resembling that at line 180 in boxes.php and remove it. Link to comment Share on other sites More sharing options...
rommany Posted March 16, 2005 Share Posted March 16, 2005 thxs steve, it was white space, all that for something so simple again thxs Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.