osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Text Color

This is a discussion on Text Color within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; On my main page, bot the 'new products for december' and 'specials for december' are colored in black. The background ...

      
  1. #1
    Active Member
    Join Date
    Oct 2004
    Posts
    215
    Rep Power
    8


    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
    Active Member
    Join Date
    Oct 2004
    Posts
    215
    Rep Power
    8


    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
    Active Member
    Join Date
    Oct 2004
    Posts
    215
    Rep Power
    8


    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
    Active Member
    Join Date
    Oct 2004
    Posts
    215
    Rep Power
    8

  5. #5
    Active Member
    Join Date
    Oct 2004
    Posts
    215
    Rep Power
    8


    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
    Active Member
    Join Date
    Oct 2004
    Posts
    215
    Rep Power
    8


    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
    New Member
    Join Date
    Oct 2004
    Posts
    8
    Rep Power
    0


    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

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  9. #9
    Active Member
    Join Date
    Oct 2004
    Posts
    215
    Rep Power
    8


    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

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

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, 05: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, 05:13 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
  •