Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Top Category image size with Subcategories

    Hi,

    I have been reading forum about category image sizes but can't see any solution to make category image smaller when it is displayed with subcategory links on category page.

    I have set up all the images to be 100px wide on Admin -> Configuration -> Images but still my category image is as big as the picture is in reality. I would not like to make separate pictures for categories but I use the quite small (about 200 px wide) picture that I need for other images on the webshop.

    I looked also the template for the categories (tpl_index_categories.php) and I do not see there would be anything to say for ZC to put the image in the size of set up in configuration. What should I do?

    if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS_TOP == 'true') {
    // categories_image
    if ($categories_image = zen_get_categories_image($current_category_id)) {
    ?>
    <div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image); ?></div>
    <?php
    }
    } // categories_image
    ?>

    Thanks in advance!

    Elli
    I may be blond but at least I found Zen.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Top Category image size with Subcategories

    I have set up all the images to be 100px wide on Admin -> Configuration -> Images
    Did you change these default settings to 100px?

    Category Icon Image Width - Product Info Pages 60
    Category Icon Image Height - Product Info Pages 48

    If so, go back and start with these velues and adjust as desired

    Also check this setting in images > Image - Use Proportional Images on Products and Categories > and set to "1"
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Top Category image size with Subcategories

    Quote Originally Posted by kobra
    Did you change these default settings to 100px?

    Category Icon Image Width - Product Info Pages 60
    Category Icon Image Height - Product Info Pages 48

    If so, go back and start with these velues and adjust as desired

    Also check this setting in images > Image - Use Proportional Images on Products and Categories > and set to "1"
    Actually in above settings I have only 50px as width but I took that totally off in the end. I do not need category images on Product Info pages.
    What I am talking about is the situation when category is displayed with subcategory links on category page. So, there's the image of the top category and there's subcategory links as text. In this occasion I would need to finetune the size of the TOP Category image.

    The Proportional Images I have set up as "1".
    But as you can see in the template code of the image for the category page, there's actually no links for sizes at configuration. I think that is the problem, so the system is not ready for that but I guess it can easily be by adding proper code and for example use the Small Image size as constant name. I just do not know how to do it.

    Elli
    I may be blond but at least I found Zen.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Top Category image size with Subcategories

    I only am armed with wrenches, no code pencils...you seem to know more about code than I...maybe another more adept at code will chime in.
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Top Category image size with Subcategories

    Anybody has any answer?
    I may be blond but at least I found Zen.

  6. #6
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Top Category image size with Subcategories

    This may be fixed in the newest release, 1.3.6 now? Is it so?
    There was something about Top Category pics in the List of Changes.

    Elli
    I may be blond but at least I found Zen.

 

 

Similar Threads

  1. Can't change subcategories image Size . (changed in admin but didn't work=
    By Javier Romero in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 May 2013, 10:01 AM
  2. v138a Disable Product Images in one TOP category to affect all subcategories
    By sbbemn in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 17 Jul 2012, 10:36 PM
  3. Hide top category - Skip to subcategories
    By John Rock in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 2 Feb 2010, 11:01 PM
  4. Displaying Subcategories at the top of Category Pages
    By kabbink in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Mar 2008, 02:07 AM
  5. howto show always Top and Subcategories in the category box?
    By wflohr in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 May 2006, 06:06 AM

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