Full service web hosting, great prices and support. Starts at $1.99/month!
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Text Color

  1. #1
    groggory
    Guest


    Default Text Color

    On my main page, bot the 'new products for december' and 'specials for december' are colored in black. The background in blue and they are almost completely unviewable.

    How can I change this text to white?

  2. #2
    groggory
    Guest


    Default

    TD.infoBoxHeading {
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    background: #587CBE;
    color: #ffffff;
    }

    That's from my CSS file....what entry in the CSS sheet pertains to my question?

  3. #3
    groggory
    Guest


    Default

    catalog/includes/modules/default_specials.php seems to hold the formatting for the box.

    I'm still stumped though. It seems to call the CSS function infoBoxHeading. Which is what I posted above and the text color should be #ffffff , which is white (what I want).

    Any ideas?

  4. #4

  5. #5
    groggory
    Guest


    Default

    Does anyone know how to do this? It seems to be a default AABox template problem as that text is black even in a default MAX install.

    I'm sure someone out there has found a fix.

    Thanks.

  6. #6
    groggory
    Guest


    Default

    if I could figure out where that line is being called from, could I just manually throw white font color tags around it? Thats so quick and dirty and static. Just kinda defeats the purpose of a template CSS driven site.

    So if we could fix this the RIGHT way that would be great.

    That and msaek should put this fix if we get it in the new version of MAX.

  7. #7
    beernut
    Guest


    Default

    I posted pretty much the same question the other day without any response. They are not white because they are hyperlinks so the css clas which is controlling them is as follows.

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

    A:hover {
    color: #AABBDD;
    text-decoration: underline;

    The problem is if you lighten these up then all the links in your category menu get lightened also.

  8. #8
    osCMax Developer


    Text Color


    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,134
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    597


    Default

    All you need to do is create a new style for 'specials links' in stylesheet.css and call it in the template. That way, you can still have a specific color for the link and not bother your other links.

    So, add something like this to your stylesheet:

    Code:
    A.specials {
    	color: Silver;
    	text-decoration: none;
    }
    Then change the style reference in the default_specials.php file to call this new style...

  9. #9
    groggory
    Guest


    Default

    Line 24 of catalog/includes/modules/default_specials.php
    Code:
      new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_SPECIALS));
    Line 134 of catalog/templates/aabox/stylesheet.css
    Code:
    TD.infoBoxHeading {
      font-family: Verdana, Arial, sans-serif;
      font-size: 10px;
      font-weight: bold;
      background: #587CBE;
      color: #ffffff;
    }
    So doesn't the class TD.infoboxheading control that text? I'm a real newb when it comes to CSS.

  10. #10
    osCMax Developer


    Text Color


    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,134
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    597


    Default

    Here is an example.

    This Changes the style of the link to use the headerNavigation style (white by default):

    Edit this line in default_specials.php:
    Code:
      $info_box_contents[] = array('align' => 'left', 'text' => '<a href="' . tep_href_link(FILENAME_SPECIALS) . '">' . sprintf(TABLE_HEADING_DEFAULT_SPECIALS, strftime('%B') . '</a>'));
    to this:
    Code:
      $info_box_contents[] = array('align' => 'left', 'text' => '<a href="' . tep_href_link(FILENAME_SPECIALS) . '" class="headerNavigation">' . sprintf(TABLE_HEADING_DEFAULT_SPECIALS, strftime('%B') . '</a>'));
    Now your link will be white.

Page 1 of 2 12 LastLast

Similar Threads

  1. how to change color of text in categories box
    By joanstead in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 01-17-2006, 06:58 AM
  2. Specific Problem with Text Color
    By draeseke in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 08-01-2005, 06:03 AM
  3. 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, 05:35 AM
  4. Infobox text color help
    By Dumb_Question in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 09-15-2003, 09:27 AM
  5. How do you change the text color in the box headings?
    By jmbishop in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 02-13-2003, 06:13 PM

Bookmarks

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
  •