Results 1 to 4 of 4

Font color on "Specials" and "New Products&qu

This is a discussion on Font color on "Specials" and "New Products&qu within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; I've changed my stylesheet.css to change the color of the infoboxheading class, but two items on my home page of ...

      
  1. #1
    Member
    Join Date
    Feb 2004
    Posts
    89
    Rep Power
    0


    Default Font color on "Specials" and "New Products&qu

    I've changed my stylesheet.css to change the color of the infoboxheading class, but two items on my home page of my catalog come up in a different font color (black): the "Specials" and "New Product" listings at the bottom of my page.

    You can see this at: http://216.57.219.86/ecom/catalog/index.php

    You can view my stylesheet at http://216.57.219.86/ecom/catalog/stylesheet.css to confirm that that text should be white.

    All my other headings are white. Anyone know why these two would be black?

    Thanks,
    Greg

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


    Default

    I think it is because they are not just text but also links?

  3. #3
    Member
    Join Date
    Feb 2004
    Posts
    89
    Rep Power
    0


    Default Figured it out!

    I'm not sure if that was it, but I was able to go in and add a CSS style to my stylesheet.css called A.subheads

    Code:
    A.subheads {
    color: #FFFFFF;
    }

    Then, I looked at the source code for the page in my browser and found this text:
    <!-- default_specials //-->

    I figured that text was being generated by the include file that displayed the specials. So I searched through all the files in the /include/ subdirectory for the content "<!-- default_specials //-->" Lo and behold, I found includes/modules/default_specials.php!

    So then I searched through the code for this page and found line 23:

    Code:
      $info_box_contents[] = array('align' => 'left', 'text' => '<a class="subheads" href="' . tep_href_link(FILENAME_SPECIALS) . '">' . spr....etc.etc.etc....
    This looked like code that created the heading, so simply added in my new CSS class:

    $info_box_contents[] = array('align' => 'left', 'text' => '<a class="subheads" href="' . tep_href_link(FILENAME_SPECIALS) . '">' . spr.........

    It worked completely -- and I learned about CSS in the process. Tres cool.

    To change the "New Products" listing, I looked in the same directory and found new_products.php. I simply made the same changes there...

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


    Default

    well there ya go!

Similar Threads

  1. Remove "QTPRO" for "Option Type Feature"
    By adam71o in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 01-10-2007, 10:32 AM
  2. How to change the "date" and "months" na
    By oling in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 08-25-2006, 10:09 AM
  3. "Price" and "Add to Cart" button inside
    By midwestwebsites in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 11-14-2005, 05:13 AM
  4. Unlinking "Specials For" and "New Products Fo
    By bsa in forum osCmax v1.7 Discussion
    Replies: 5
    Last Post: 04-19-2004, 12:29 PM
  5. "available option" text font....
    By starchild in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 05-10-2003, 11:13 AM

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
  •