mystifier_uk Posted May 20, 2006 Posted May 20, 2006 I have been working on my site for a while now, at: http://www.watchstrapsuk.com/ And managed to get the site how I would like. The main feature was the left column to be black, and to stretch to the bottom of the page - which I have finally managed to do. But on a few pages, like the contact us or the shopping cart pages I get a black background which I want white like the rest of the site. You can see what I mean on these pages: http://www.watchstrapsuk.com/contact_us.php http://www.watchstrapsuk.com/shopping_cart.php Can anyone tell me how to get these pages to have a white background instead of the black?? :blink: Thanks in advance!
muskokee Posted May 20, 2006 Posted May 20, 2006 I have been working on my site for a while now, at: http://www.watchstrapsuk.com/ And managed to get the site how I would like. The main feature was the left column to be black, and to stretch to the bottom of the page - which I have finally managed to do. But on a few pages, like the contact us or the shopping cart pages I get a black background which I want white like the rest of the site. You can see what I mean on these pages: http://www.watchstrapsuk.com/contact_us.php http://www.watchstrapsuk.com/shopping_cart.php Can anyone tell me how to get these pages to have a white background instead of the black?? :blink: Thanks in advance! Look for your infoBoxContents, infoBox or TextBox classes in your style sheet. One of these classes has a black background. Sheri
mystifier_uk Posted May 20, 2006 Author Posted May 20, 2006 Thanks, but I have changed those to white (#FFFFFF) but when I do that the left navigation column also changes to white - but I want that black!
ozcsys Posted May 20, 2006 Posted May 20, 2006 Thanks, but I have changed those to white (#FFFFFF) but when I do that the left navigation column also changes to white - but I want that black! You can see all the stylesheet definitions and what they control HERE The problem you are having however may not have a quick fix as I have found in some instances that a certain class will control tables that you do not want to change. This gives you two choices, you can find the table you do not want to be controlled by the class it is now controlled by and either assign it a new class or hard code the color in the table code. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
mystifier_uk Posted May 20, 2006 Author Posted May 20, 2006 I have tried to add a new class but no luck, and when I look at shopping_cart.php I find the following: <tr> <td align="center" class="main"><?php new infoBox(array(array('text' => TEXT_CART_EMPTY))); ?></td> </tr> I have set up another class called infoBox2, but when I change the code to: <tr> <td align="center" class="main"><?php new infoBox2(array(array('text' => TEXT_CART_EMPTY))); ?></td> </tr> I get an error :blink: Does anyone have any suggestions?
abra123cadabra Posted May 20, 2006 Posted May 20, 2006 when you set up infoBox2, did you copy everything in classes/boxes.php to the new infoBox2? In there you should find class="TextBox". Change this in infoBox2 to something like TextBox2 and define this with the white background in your stylesheet. abra The First Law of E-Commerce: If the user can't find the product, the user can't buy the product. Feedback and suggestions on my shop welcome. Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.
mystifier_uk Posted May 20, 2006 Author Posted May 20, 2006 The error I get when I change it to infoBox2 is: Fatal error: Cannot instantiate non-existent class: infobox2 in/homepages/16/d147857598/htdocs/shop/catalog/shopping_cart.php on line 208 Does anyone know what this means?
chooch Posted May 20, 2006 Posted May 20, 2006 You could have saved yourself so much time and run a search engine query, you would have got pages upon pages of ways to do it. Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back! Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you? There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere. CHOOCH
mystifier_uk Posted May 20, 2006 Author Posted May 20, 2006 So does anyone know what causes this error? Thanks.
spax Posted May 21, 2006 Posted May 21, 2006 The rule that is controlling it (class="TextBox") isn't defined in your stylesheet. Therefore it inherits the class infoBoxContents, which has a black background. Set a new rule in your stylesheet .TextBox { background: #ffffff; font-family: Verdana, Arial, sans-serif; font-size: 12px; font-weight: bold; } Or however you want it to look and that should resolve it.
abra123cadabra Posted May 21, 2006 Posted May 21, 2006 The error I get when I change it to infoBox2 is: Does anyone know what this means? This means that you obviously only changed shopping_cart.php to have the new infoBox2 and not /catalog/includes/classes/boxes.php. This file is where the stylesheet class is applied to the tablefield that contains the "your cart is empty" message. So all you got to do is create a new class in boxes.php to which you apply the new class name infoBox2 and in addition to that you add another class to your stylesheet which has the background set to white. It is not enough to just rename infoBox in your shopping_cart.php as there is no class that can be instantiated. It is also not enough to just add another class to the stylesheet as this would change your black left column to white again. abra The First Law of E-Commerce: If the user can't find the product, the user can't buy the product. Feedback and suggestions on my shop welcome. Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.