Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2008
    Posts
    76
    Plugin Contributions
    0

    Default Multiple Product Header Line

    I wish that when multiple products are listed in a table that the Header line with the tile_back.gif file was not just an anchor, like the actual product titles, but had an actual class I could change.

    I'm being forced to have the same color text in the description "Item Name" as the product itselfs title.

    I want white in the description line with a blue tile_back and blue in the title. Argh.

  2. #2
    Join Date
    Mar 2008
    Posts
    76
    Plugin Contributions
    0

    Default Changing the Product Listing Header Row Text Color

    I'm trying to change a Multiple Product Listing Header Row Text Color. The field is an anchor. So, I thought I'd add a class and the modify the stylesheet.css to change the color of the text.

    In the module: tpl_modules_products_all_listing.php, I did the following:

    Code:
        if (PRODUCT_ALL_LIST_NAME != '0') {
            $display_products_name = '<a class=blah href="' . zen_href_link          (zen_get_info_page($products_all->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($products_all->fields['master_categories_id']) . '&products_id=' . $products_all->fields['products_id']) . '"><strong>' . $products_all->fields['products_name'] . '</strong></a>' . str_repeat('<br clear="all" />', substr(PRODUCT_ALL_LIST_NAME, 3, 1));
    
          } else {
    
            $display_products_name = '';
    
          }
    In the stylesheet.css, I did:

    #blah {
    color: #FFFFFF;
    }

    It's not working. I may be in the wrong module.

    Info will be greatly appreciated.

    store page link: http://thewonderofchrist.com/store/i...ndex&cPath=1_4

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Changing the Product Listing Header Row Text Color

    1. The link you provided has nothing to do with the "all products" listing page you quoted code from.

    2. If you're going to attempt to set a selector for a "class", then you need to use a "." in the stylesheet, not a "#" (The "#" is for an "id", not a "class").

    3. Adding this to your stylesheet makes the heading links white on the page for which you posted a link:

    Code:
    th.productListing-heading a {
      color: #ffffff;
    }
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Changing the Product Listing Header Row Text Color

    You don't need to add classes to every element.
    You can use "inheritance" to get to any element on the page.
    You might check out the topic of inheritance on the w3c website or your favorite CSS book.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Mar 2008
    Posts
    76
    Plugin Contributions
    0

    Default Re: Changing the Product Listing Header Row Text Color

    Thank you. I'm really embarrassed about the "#" instead of ".". I was floundering. Thank you for the fix. Much appreciated.

 

 

Similar Threads

  1. Changing Text Color in the header & footer
    By stlnyc in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 31 Oct 2008, 03:21 AM
  2. changing the text color of the header links
    By vfrazier in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Oct 2008, 01:26 AM
  3. Column Layout Grid for Product Listing - Need Row Header
    By kwright in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 16 Oct 2008, 09:36 PM
  4. Changing the TEXT Color of the Product Categories & Documents Boxes
    By Donn in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Nov 2007, 10:08 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR