Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Mar 2005
    Posts
    123
    Plugin Contributions
    0

    Default Category text & image styling problems

    Can someone please take a look at www (dot) stock-basket (dot) com

    The main page layout is fine but if you click on one of the top level categories such as "menswear" then things start to go wrong...?

    The text for the sub-categories is squashed and not centered, then when you click on a sub-category such as T-shirts the column grid mod is working but the images are not centered and the text is squashed (but centered)?

    I would really appreciate a hand with this as I have been looking at the stylesheet(s) for ages!

    Thanks

    Tony

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: Category text & image styling problems

    Something is hard-coding a style of "width: 24.5%;"

    <div class="centerBoxContentsProducts centeredContent" style="width: 24.5%;"> Shows up in the code. Removing the style call centers the image and the text.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Mar 2005
    Posts
    123
    Plugin Contributions
    0

    Default Re: Category text & image styling problems

    Excellent! Thank you...

    For anyone else who finds this thread - the problem was with the column display mod (i'm not saying the mod is buggy it just didn't work with my template / layout that's all!)

    The offending line is in /includes/modules/<YOUR TEMPLATE>/product_listing.php

    Find this line (line 239)

    $list_box_contents[$rows][$column] = array('params' => 'class="centerBoxContentsProducts centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',

    And change it to:

    $list_box_contents[$rows][$column] = array('params' => 'class="centerBoxContentsProducts centeredContent back"' . ' ' . '',

    Done!

    The only problem now is with the top level categories which are still displaying "squashed" descriptions (click on menswear to see the problem)

    Any ideas?

    Thanks

  4. #4
    Join Date
    Mar 2005
    Posts
    123
    Plugin Contributions
    0

    Default Re: Category text & image styling problems

    Actually I just fixed that too - same problem different file!

    The offending file this time was /includes/modules/category_row.php

    Thanks again...

 

 

Similar Threads

  1. Category image and category name text align problem.
    By marknew in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 21 Sep 2012, 03:02 AM
  2. Bottom Align Sub Category Text & Image on Category Page
    By yorkshiregc in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Aug 2011, 02:01 AM
  3. Different Category & Sub-Category Image Sizes & Listings Per Row
    By lj20272 in forum Customization from the Admin
    Replies: 8
    Last Post: 31 May 2011, 09:13 AM
  4. Is this possible? Styling category text?
    By pb4 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 14 Jan 2010, 05:47 PM
  5. Category Image & Category Name
    By litepockets in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Apr 2008, 08:03 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