Results 1 to 7 of 7

font color in new products info box header?

This is a discussion on font color in new products info box header? within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; I've been searching threads and looking through all the max files trying to find out how to change the font ...

      
  1. #1
    Active Member
    Join Date
    Feb 2004
    Posts
    174
    Rep Power
    9


    Default font color in new products info box header?

    I've been searching threads and looking through all the max files trying to find out how to change the font color in the heading of the new products box that appears on every page. It is the same color as the text/links on the main page and I want it the same as my other info boxes??

  2. #2
    New Member
    Join Date
    Jan 2004
    Posts
    23
    Rep Power
    0


    Default

    Find the file catalog/includes/modules/new_products.php

    Around line 19 you should find:

    new contentboxheading

    change to:

    new infoBoxHeading

  3. #3
    Active Member
    Join Date
    Feb 2004
    Posts
    174
    Rep Power
    9


    Default

    Thanks for your reply, I'm just not sure what exactly to change here:
    <!-- new_products //-->
    <?php
    $info_box_contents = array();
    // $info_box_contents[] = array('text' => sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')));
    $info_box_contents[] = array('align' => 'left', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW) . '">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B') . '</a>'));
    // new contentBoxHeading($info_box_contents);
    new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_PRODUCTS_NEW));

    if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) {
    $new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);
    } else {
    $new_products_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);
    }

    $row = 0;
    $col = 0;
    $info_box_contents = array();
    while ($new_products = tep_db_fetch_array($new_products_query)) {
    $new_products['products_name'] = tep_get_products_name($new_products['products_id']);

  4. #4
    Anonymous
    Guest


    Default

    Hi

    The change has all ready been made in your text line 10. You will notice the header is currently the same colour as all your text links, defined in the stylesheet.css style A, because the header is a link.

    Sorry one more step, The header link needs to be removed, (the more link far right of the header does the same job) change

    $info_box_contents[] = array('align' => 'left', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW) . '">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B') . '</a>'));

    to

    $info_box_contents[] = array('align' => 'left', 'text' => sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')));

    Everything should now be the right colour.

  5. #5
    Active Member
    Join Date
    Feb 2004
    Posts
    174
    Rep Power
    9


    Default

    Ok, I'll try that. Thanks a million, this was giving me a headache!

  6. #6
    Active Member
    Join Date
    Feb 2004
    Posts
    174
    Rep Power
    9


    Default

    perfect! Thanks again!

  7. #7
    Active Member
    Join Date
    Feb 2004
    Posts
    174
    Rep Power
    9


    Default

    ok, not quite perfect in IE though.
    For some reason any text that is not a link on the page is white in IE, it's black in Netscape(like it's supposed to be)
    What the heck did I do? I must have put #ffffff somewhere, but it's not in the style sheet (I don't think??) Where else might I have changed the font color though?

    Here's my style sheet:
    @charset "iso-8859-1";
    /*
    $Id: stylesheet.css,v 1.56 2003/06/30 20:04:02 hpdl Exp $

    osCommerce, Open Source E-Commerce Solutions
    http://www.oscommerce.com

    Copyright (c) 2003 osCommerce

    Released under the GNU General Public License

    Updated by TemplateShopper.com November 2003 for AAbox .com
    */

    .boxText { font-family: Verdana, Arial, sans-serif; font-size: 10px; }
    .errorBox { font-family : Verdana, Arial, sans-serif; font-size : 10px; background: #ffb3b5; font-weight: bold; }
    .stockWarning { font-family : Verdana, Arial, sans-serif; font-size : 10px; color: #cc0033; }
    .productsNotifications { background: #f2fff7; }
    .orderEdit { font-family : Verdana, Arial, sans-serif; font-size : 10px; color: #70d250; text-decoration: underline; }

    BODY {
    /*background: #ffffff;*/
    color: #000000;
    margin: 0px;
    background-image : url();
    }

    A {
    color: #000000;
    text-decoration: none;
    }

    A:hover {
    color: #9c0000;
    text-decoration: underline;
    }

    FORM {
    display: inline;
    }

    TR.header {
    background: #9c0000;
    }

    TR.headerNavigation {
    /*background: #9c0000;*/
    }

    TD.headerNavigation {
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    background: #9c0000;
    color: #ffffff;
    font-weight : bold;
    background-color : #9c0000;
    padding-bottom : 2px;
    padding-top : 2px;
    }

    A.headerNavigation {
    color: #FFFFFF;
    }


    A.headerNavigation:hover {
    color: #9c0000;
    }

    TR.headerError {
    background: #ff0000;
    }

    TD.headerError {
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 12px;
    background: #ff0000;
    color: #ffffff;
    font-weight : bold;
    text-align : center;
    }

    TR.headerInfo {
    background: #9c0000;
    }

    TD.headerInfo {
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 12px;
    background: #9c0000;
    font-weight: bold;
    text-align: center;
    }

    TR.footer {
    /*background: #9c0000;*/
    }

    TD.footer {
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    background: #9c0000;
    color: #ffffff;
    font-weight: bold;
    padding-top : 1px;
    padding-bottom : 2px;
    }

    .infoBox {
    /*background: #9c0000;*/
    color: #000000;
    }

    .infoBoxContents {
    /*background: #9c0000;*/
    background-image : url();
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    }

    .infoBoxNotice {
    background: #9c0000;
    }

    .infoBoxNoticeContents {
    background: #9c0000;
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    }

    TD.infoBoxHeading {
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    background: #9c0000;
    }

    TD.infoBox, SPAN.infoBox {
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    }

    TR.accountHistory-odd, TR.addressBook-odd, TR.alsoPurchased-odd, TR.payment-odd, TR.productListing-odd, TR.productReviews-odd, TR.upcomingProducts-odd, TR.shippingOptions-odd {
    background: #f8f8f9;
    }

    TR.accountHistory-even, TR.addressBook-even, TR.alsoPurchased-even, TR.payment-even, TR.productListing-even, TR.productReviews-even, TR.upcomingProducts-even, TR.shippingOptions-even {
    background: #f8f8f9;
    }

    TABLE.productListing {
    border: 1px;
    border-style: solid;
    border-color: #9c0000;
    border-spacing: 1px;
    }

    .productListing-heading {
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    background: #9c0000;
    font-weight: bold;
    }

    TD.productListing-data {
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    }

    A.pageResults {
    color: #0000FF;
    }

    A.pageResults:hover {
    color: #0000FF;
    background: #FFFF33;
    }

    TD.pageHeading, DIV.pageHeading {
    font-family: Verdana, Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #9c0000;
    }

    TR.subBar {
    background: #f4f7fd;
    }

    TD.subBar {
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    color: #000000;
    }

    TD.main, P.main {
    font-family: Verdana, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    }

    TD.smallText, SPAN.smallText, P.smallText {
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    }

    TD.accountCategory {
    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;
    color: #aabbdd;
    }

    TD.fieldKey {
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    }

    TD.fieldValue {
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    }

    TD.tableHeading {
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    }

    TD.category_desc {
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.5;
    }

    SPAN.newItemInCart {
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    color: #ff0000;
    }

    CHECKBOX, INPUT, RADIO, SELECT {
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    }

    TEXTAREA {
    width: 100%;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    }

    SPAN.greetUser {
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    color: #f0a480;
    font-weight: bold;
    }

    TABLE.formArea {
    background: #f1f9fe;
    border-color: #7b9ebd;
    border-style: solid;
    border-width: 1px;
    }

    TD.formAreaTitle {
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    }

    SPAN.markProductOutOfStock {
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 12px;
    color: #c76170;
    font-weight: bold;
    }

    SPAN.productSpecialPrice {
    font-family: Verdana, Arial, sans-serif;
    color: #ff0000;
    }

    SPAN.errorText {
    font-family: Verdana, Arial, sans-serif;
    color: #ff0000;
    }

    .moduleRow { }
    .moduleRowOver { background-color: #D7E9F7; cursor: pointer; cursor: hand; }
    .moduleRowSelected { background-color: #E9F4FC; }

    .checkoutBarFrom, .checkoutBarTo { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #8c8c8c; }
    .checkoutBarCurrent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; }

    /* message box */

    .messageBox { font-family: Verdana, Arial, sans-serif; font-size: 10px; }
    .messageStackError, .messageStackWarning { font-family: Verdana, Arial, sans-serif; font-size: 10px; background-color: #ffb3b5; }
    .messageStackSuccess { font-family: Verdana, Arial, sans-serif; font-size: 10px; background-color: #99ff00; }

    /* input requirement */

    .inputRequirement { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ff0000; }

Similar Threads

  1. Changing Background Color of Header
    By knowgangs in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 07-12-2005, 12:32 PM
  2. color of header text in new products and specials boxes
    By dschroedl in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 08-24-2004, 06:35 AM
  3. Font color on "Specials" and "New Products&qu
    By gheffron in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 04-01-2004, 02:40 AM
  4. Help needed changing link color in info box header
    By 13Moons in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 03-04-2004, 02:12 AM
  5. Changing Product Info Font Color
    By JaaMor in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 11-11-2003, 06:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •