Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default Column Layout Grid - Bold Font CSS Question

    The top column of the rows have the product description in bold font and after that they are not in bold, I spent an hour trying to find what specifies this, any ideas...

    http://www.exoticparadise.com.au/ind...=index&cPath=1

    Last edited by vandiermen; 4 Jun 2007 at 07:36 PM. Reason: spelling

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Column Layout Grid - Bold Font CSS Question

    I can tell you what is happening, though not yet how to fix it...
    The top row of products is being defined as <th> table header, so everything is bold. Subsequent rows are <td> table data, as all should be. I haven't studied yet how Column Grid handles the data differently from the regular product_listing.php, but the answer is probably in there somewhere.

  3. #3
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default Re: Column Layout Grid - Bold Font CSS Question

    Although I never really got to the bottom of it, I found a class in the <TD> for the description text “class=listingDescription” that was not defined in the stylesheet.css, all I had to do is create this in the css ".listingDescription { font-weight: bold; }" and that fixed it. I should have seen it before..

    Thank for your help!

  4. #4
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default Re: Column Layout Grid - Bold Font CSS Question

    Just for other people that may have this problem...

    The above fixed the Description but the price was still not in bold, and the price had no css class, so I had to edit the product_listing.php

    The columns are defined by the following in the \includes\modules\product_listing.php

    $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listi ng->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>';
    }
    break;
    case 'PRODUCT_LIST_MANUFACTURER':
    $lc_align = '';
    $lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>';
    break;
    case 'PRODUCT_LIST_PRICE':
    $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
    $lc_align = 'right';
    $lc_text = $lc_price;



    There would have been a number of ways to edit this inorder to change the font, etc, but what I changed was:

    $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listi ng->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '<br />';
    }
    break;
    case 'PRODUCT_LIST_MANUFACTURER':
    $lc_align = '';
    $lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>';
    break;
    case 'PRODUCT_LIST_PRICE':
    $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
    $lc_align = 'right';
    $lc_text = $lc_price . '</div>';

  5. #5
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default Re: Column Layout Grid - Bold Font CSS Question

    Make that:

    {
    $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listi ng->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '<br />';
    }
    break;
    case 'PRODUCT_LIST_MANUFACTURER':
    $lc_align = '';
    $lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>';
    break;
    case 'PRODUCT_LIST_PRICE':
    $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
    $lc_align = 'right';
    $lc_text = $lc_price;

    // more info in place of buy now
    $lc_button = '';
    if (zen_has_product_attributes($listing->fields['products_id']) or PRODUCT_LIST_PRICE_BUY_NOW == '0') {
    $lc_button = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a></div>';
    }

    Most anything would want to change in the Column Layout Grid module can be changed from here. There are several sections that look the same as the above in the product_listing.php but only one changes the Column Layout Grid, be sure to find the right one... I did a search for "listingDescription" to find
    it

 

 

Similar Threads

  1. Column Layout Grid Add on and CSS buy now button
    By joey779 in forum Addon Templates
    Replies: 0
    Last Post: 8 Aug 2011, 02:09 PM
  2. Column Layout Grid for Products - 2nd line of prices not bold
    By keylesslocks in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Oct 2008, 02:17 AM
  3. Question about Column Layout Grid
    By anafor in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Aug 2008, 04:59 PM
  4. column grid layout question
    By julia44 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 11 May 2007, 05:53 PM
  5. Column Grid Layout Question
    By bombknex in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 29 Sep 2006, 02:10 PM

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