johnbee1960 Posted November 19, 2007 Posted November 19, 2007 I have a black background on my os site and on the products page and most others - there is a white bar ( or small panel) with two buttons "reviews" and "add to cart" What I want to do is get rid of this white panel, or changes its color to blend with the rest of the site How do I do this , what is the panel name An example of what I am trying to do can be found here http://firestormwebhosting.com/product_inf...?products_id=22 This is only a dummy site to show the problem I want rid of the white where it says reviews and add to cart - I want this white panel a different color URGENT reply needed please
paul1980 Posted November 19, 2007 Posted November 19, 2007 Take a look at product_info.php around line 212: <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td> That is where the buttons are used, hope this helps
johnbee1960 Posted November 19, 2007 Author Posted November 19, 2007 Take a look at product_info.php around line 212: <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td> That is where the buttons are used, hope this helps Rather interesting what you say I have searched my images folder and there is no reference anywhere to 'button_reviews.gif' It is not a button that I want to remove, but the white panel thats under it
DejaVu Posted November 19, 2007 Posted November 19, 2007 It's the style sheet that needs editting. Use Find in the style sheet for main and edit the background color.
digilee Posted November 19, 2007 Posted November 19, 2007 try changing this: <td class="main"> to this: <td> SolarFrenzy Solar powered gadgets at down to earth prices. CheekyNaughty Promoting British Design
johnbee1960 Posted November 19, 2007 Author Posted November 19, 2007 It's the style sheet that needs editting. Use Find in the style sheet for main and edit the background color.
johnbee1960 Posted November 19, 2007 Author Posted November 19, 2007 It's the style sheet that needs editting. Use Find in the style sheet for main and edit the background color. Its NOT the background I want to change - I want the background Black and it is Black
johnbee1960 Posted November 19, 2007 Author Posted November 19, 2007 try changing this:<td class="main"> to this: <td> is this in the stylesheet ?
digilee Posted November 19, 2007 Posted November 19, 2007 to quote the post before: "Take a look at product_info.php around line 212: <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>" :) SolarFrenzy Solar powered gadgets at down to earth prices. CheekyNaughty Promoting British Design
johnbee1960 Posted November 19, 2007 Author Posted November 19, 2007 to quote the post before: "Take a look at product_info.php around line 212: <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>" :) Im confused with this product_info.php is in my inludes/languages/english folder It does not have a line 212 It reads as thus <?php /* $Id: product_info.php,v 1.15 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('TEXT_PRODUCT_NOT_FOUND', 'Product not found!'); define('TEXT_CURRENT_REVIEWS', 'Current Reviews:'); define('TEXT_MORE_INFORMATION', 'For more information, please visit this products <a href="%s" target="_blank"><u>webpage</u></a>.'); define('TEXT_DATE_ADDED', 'This product was added to our catalog on %s.'); define('TEXT_DATE_AVAILABLE', '<font color="#ffffff">This product will be in stock on %s.</font>'); define('TEXT_ALSO_PURCHASED_PRODUCTS', 'Customers who bought this product also purchased'); define('TEXT_PRODUCT_OPTIONS', 'Available Options:'); define('TEXT_CLICK_TO_ENLARGE', 'Click to enlarge'); ?>
DejaVu Posted November 19, 2007 Posted November 19, 2007 It is indeed in your languages folder as well. That is used for text translations! /product_info.php or /catalog/product_info.php is the file we are refering to. This is the file that loads the original link you entered. Line 212 of that php file is - <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>" Explaination - <td class="main"> is defined in the stylesheet.css under MAIN. That is looking for details of what to make the table look like. If you remove ' class="main" ' from the php file it stops it looking in the stylesheet and will tie in with the rest of the look of your site (black background). Stylesheet is easier to change as it will also change the ones that are on other pages... Where the continue buttons lie etc. SO. Open stylesheet.css Find 'TD.main, P.main {' Under that is parameters to set colours/fonts/etc White is #FFFFFF, Black is #000000 Change accordingly. Hope that helps.
johnbee1960 Posted November 19, 2007 Author Posted November 19, 2007 It is indeed in your languages folder as well. That is used for text translations! /product_info.php or /catalog/product_info.php is the file we are refering to. This is the file that loads the original link you entered. Line 212 of that php file is - <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>" Explaination - <td class="main"> is defined in the stylesheet.css under MAIN. That is looking for details of what to make the table look like. If you remove ' class="main" ' from the php file it stops it looking in the stylesheet and will tie in with the rest of the look of your site (black background). Stylesheet is easier to change as it will also change the ones that are on other pages... Where the continue buttons lie etc. SO. Open stylesheet.css Find 'TD.main, P.main {' Under that is parameters to set colours/fonts/etc White is #FFFFFF, Black is #000000 Change accordingly. Hope that helps. FAN BLOODY TASTIC ! Thank you so much
johnbee1960 Posted November 21, 2007 Author Posted November 21, 2007 Well I have gone through all of that and it makes no difference Arggggghhhhhh !!
spax Posted November 21, 2007 Posted November 21, 2007 You have confused this a little as on the one hand you say the white bar where the reviews button is, yet on the other, when you were advised to change the stylesheet, you say it isn't the background. It seems to me you are talking about a background colour and it is usually defined by the infoBoxContents rule in your stylesheet. If you showed the actual site you are working on, this could have been solved in minutes. A link in your profile would have done, if you don't want to display it on the forum.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.