Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2008
    Posts
    7
    Plugin Contributions
    0

    css problem Product Listing Title Colour

    Hi

    After clicking on a Catagory, I get my products for that catagory listed.

    What I would like to do is change the colour/size etc of the clickable Product Title to help the listing stand out a little. Happy to leave the short description as is, but really want to change the title...and the hover colour for it.

    Guessed it was in stylesheet but cant seem to suss it out!

    Any help much appreciated.

    Such a simple thing but absolutely doing my head in

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Product Listing Title Colour

    As you develop your webshop, you will want to resolve many more issues like this.

    Can I suggest that you use FIREFOX and a add-on called "web developer toolkit" by Chris Pederick.

    This tool will help you identify core components in the page code - including css and style tags.

    When using firefox and the add-on, you will find what you need to edit in a matter of seconds.

    Also, consider doing the W3C online tutorials for CSS. They will help you understand how css works, and how to set your styles.
    20 years a Zencart User

  3. #3
    Join Date
    Feb 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Product Listing Title Colour

    Thanks for that.

    I've done as suggested, but not being ofay with Firefox, i'm probably more lost now than before.

    Jut looking for a quick fix for now if anyone can point me in the right direction.

    Cheers

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Product Listing Title Colour

    Are you using a Standard template, or have you installed a Custom template?

    In order to point you in the right direction, I'll need to know where the relevant CSS is located.
    20 years a Zencart User

  5. #5
    Join Date
    Feb 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Product Listing Title Colour

    Custom template. A variation on the'darkness' template

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Product Listing Title Colour

    I don't know this template, so the following may not apply...

    However...

    In the STANDARD templates, the Product Name text (which appears on your individual product description pages) is largely governed by the " h1 " css style attribute. Therefore, any component sharing the " h1 "style, will look similar in colour and size to each other.

    You can however, apply an individual style to the Product Name.

    The css code you need is probably in:-

    includes/templates/YOUR-DARKNESS-TEMPLATE/css/stylesheet.css

    Add this to the stylesheet:-


    #productName { color: #000000; }

    ...where #000000 is changed to give your chosen colour.
    20 years a Zencart User

  7. #7
    Join Date
    Feb 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Product Listing Title Colour

    Thanx

    I already have already changed the one on the actual Product Information page, so do you think your solution will change the product title in the product list (previous page if you like)

    I know i've probably not made myself veryclear so far (i'm told that a lot), so if it helps here is the site i'm trying to modify (for example)...

    http://max-sunglasses.co.cc/store/in...0fb44e47bceb22

    Thanks for your patience :)

  8. #8
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Product Listing Title Colour

    Try looking for :-

    .itemTitle

    ... in the stylesheet.

    In a standard template, this is what controls the style of the product name in the listings pages.
    20 years a Zencart User

  9. #9
    Join Date
    Feb 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Product Listing Title Colour

    This is the only reference I can find using the Developer Tools in Admin

    Code:
    /home/maxsg/public_html/store/includes/modules/product_listing.php 
    
    Line #97 : $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&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($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ; 
    
    Line #99 : $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&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($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>';
    but it's not obvious to me what I need to change without messing the whole thing up

  10. #10
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Product Listing Title Colour

    Okay... for stylesheet changes, you ought not need to use the Developer's Toolkit in the Admin.

    If you already made changes to your stylesheet(s)...


    I already have already changed the one on the actual Product Information page
    ... then you'll make this change to the SAME stylesheet.

    So, you'll be looking for a file called "stylesheet.css" (or something like that, with the extension ".css".

    The files you found above are CORE CODE files. You need to find the CSS file(s).

    If the " .itemTitle " style tag does not exist in the stylesheet, you'll have to insert it, then apply to it, the styles you want.
    20 years a Zencart User

 

 

Similar Threads

  1. v154 Colour Choice Available on Product Listing
    By MortalWombat in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 6 Dec 2015, 05:48 AM
  2. Change colour of product listing bar
    By Csenge in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Jul 2011, 07:31 PM
  3. product listint item title - change colour
    By Justrimless in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Feb 2011, 12:41 AM
  4. changing colour of category title on product listing and info pages
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Jun 2010, 06:54 PM
  5. Product listing link colour
    By spbennett in forum General Questions
    Replies: 3
    Last Post: 22 Sep 2007, 05:39 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