Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2007
    Posts
    6
    Plugin Contributions
    0

    Default 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&#37; using style.

    Thanks for the help.

    Bill

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Change <div class="categoryListBoxContents" style="width:33%;">

    What template are you using? What version of Zen Cart?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Apr 2007
    Posts
    6
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Jan 2005
    Location
    NY
    Posts
    149
    Plugin Contributions
    0

    Default Re: Change <div class="categoryListBoxContents" style="width:33%;">

    \includes\modules\category_row.php
    line 39.

  5. #5
    Join Date
    Mar 2007
    Posts
    159
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default 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&#37; 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
    Last edited by jettrue; 20 Apr 2007 at 05:23 PM.

  7. #7
    Join Date
    Apr 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Change <div class="categoryListBoxContents" style="width:33%;">

    Thanks a bunch. Solutions were very helpful.

    ;-)

 

 

Similar Threads

  1. Replies: 2
    Last Post: 17 May 2011, 03:50 AM
  2. Replies: 7
    Last Post: 12 Oct 2009, 09:07 PM
  3. <div class="legalcopyright"> where the frick is it?
    By Rickwilliams in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 23 Jul 2009, 08:34 AM
  4. "Orders" Page in Admin - change "Delivered" to "Shipped"?
    By ktessitore in forum Managing Customers and Orders
    Replies: 3
    Last Post: 21 Feb 2009, 06:25 AM
  5. Replies: 3
    Last Post: 3 Jun 2008, 11:41 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR