Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Category text & image styling problems

Category text & image styling problems

Locked

Views: 1,844

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
28 Jun 2008, 12:06 PM
#1
twdhosting avatar

twdhosting

Zen Follower

Join Date:
Mar 2005
Posts:
119
Plugin Contributions:
0

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

28 Jun 2008, 12:31 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,772
Plugin Contributions:
9

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.
28 Jun 2008, 1:18 PM
#3
twdhosting avatar

twdhosting

Zen Follower

Join Date:
Mar 2005
Posts:
119
Plugin Contributions:
0

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

28 Jun 2008, 1:22 PM
#4
twdhosting avatar

twdhosting

Zen Follower

Join Date:
Mar 2005
Posts:
119
Plugin Contributions:
0

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...