Change <div class="categoryListBoxContents" style="width:33%;">
Where do I change style width? I want 4 images to show up on a row. Tried changing number using Configuration/Index Listing, but all images still are set to 33% using style.
Thanks for the help.
Bill
Re: Change <div class="categoryListBoxContents" style="width:33%;">
What template are you using? What version of Zen Cart?
Re: Change <div class="categoryListBoxContents" style="width:33%;">
Set-up is for v1.3.7
Working on updating an old template to an upgraded new template using old files. New stylesheet is based on default tpl provided with v1.3.7.
Regards, Bill
Re: Change <div class="categoryListBoxContents" style="width:33%;">
\includes\modules\category_row.php
line 39.
Re: Change <div class="categoryListBoxContents" style="width:33%;">
it may be easier than that. I' m on the wrong machine to check right now, but the items per row can be set in admin. Just remember there is an items per row for just about everything, so you would need to change it for products/featured products/new products/etc
Re: Change <div class="categoryListBoxContents" style="width:33%;">
First you adjust the categories per row, in the admin. Go to "Configuration", "maximum values", then for "Categories To List Per Row"
However, I prefer having some padding between the categories, so I adjust the 33% like this:
On line 25 and 27 of the same file, I do this:
$col_width = floor(100/$num_categories) - 2;
$col_width = floor(100/MAX_DISPLAY_CATEGORIES_PER_ROW) - 2;
That would cause the width to be 31%, of course you could do whatever number you'd like.
There are other places where you may need to do the same thing, if you want the products to also be spaced like this, like:
modules/product_listing.php
modules/new_products.php
modules/also_purchased_products.php
modules/featured_products.php
Re: Change <div class="categoryListBoxContents" style="width:33%;">
Thanks a bunch. Solutions were very helpful.
;-)