Page 4 of 4 FirstFirst ... 234
Results 31 to 39 of 39
  1. #31
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Subcategory Layout Question!!

    I wasn't aware we were dealing with a module. Is it Categories Dressing?

    If yes, the first line you posted tells me there is switch for the blank gif:

    if (!$categories->fields['categories_image']) !$categories->fields['categories_image'] = 'pixel_trans.gif';

    Turn that off, remove the <br /> and you should be good to go.

    Otherwise, best to wait until Glenn offers a suggestion.

  2. #32
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Subcategory Layout Question!!

    It's the hide categories mod :)

    I removed the break but that had no effect....and I don't know how to 'switch off' the blank gif LOL will have a dig around the admin and see if it's there somewhere
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  3. #33
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Subcategory Layout Question!!

    I see something in the first line that looks wrong:
    PHP Code:
    if (!$categories->fields['categories_image']) !$categories->fields['categories_image'] = 'pixel_trans.gif'
    The second !$categories->fields should not have the ! in front of it. It may be a problem to PHP, or it may be ignored, but the ! means "not" and doesn't belong in the action part of the statement.

    And all that does is, if there is not a real image in that field, pixel_trans.gif is inserted so it has something to use.

  4. #34
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Subcategory Layout Question!!

    That section of code wasn't touched with the modification for hide categories, the original file has the exact same code there

    I'm not sure that removing the pixel image or the break will make it center, I used Firebug to edit both out and it remained the same...I wish everyone used FF so that it would work with the line height LOL
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  5. #35
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Subcategory Layout Question!!

    PHP Code:
        $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' ' ' 'style="width:' $col_width '%;"',
                                               
    'text' => '<a href="' zen_href_link(FILENAME_DEFAULT$cPath_new) . '">' zen_image(DIR_WS_IMAGES $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTHSUBCATEGORY_IMAGE_HEIGHT) . '<br />' $categories->fields['categories_name'] . '</a>'); 
    This section is all image (and break):

    zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' .

    so removing it should leave this:
    PHP Code:
        $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' ' ' 'style="width:' $col_width '%;"',
                                               
    'text' => '<a href="' zen_href_link(FILENAME_DEFAULT$cPath_new) . '">' $categories->fields['categories_name'] . '</a>'); 
    or commenting it:
    PHP Code:
        $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' ' ' 'style="width:' $col_width '%;"',
                                               
    'text' => '<a href="' zen_href_link(FILENAME_DEFAULT$cPath_new) . '">' /*zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' .*/ $categories->fields['categories_name'] . '</a>'); 

  6. #36
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Subcategory Layout Question!!

    Re the centering - FF shows the pixel and break with zero height (per Web Developer highlighting) so removing them would have no effect on the position, but since IE shows the text lower, it may be applying height to one or both of those. Thus eliminating them should make behavior more consistent.

    By cursor dragging to highlight in IE, I see that the pixel is somehow occupying a height equal to the text.
    Last edited by gjh42; 27 Apr 2009 at 04:47 PM.

  7. #37
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Subcategory Layout Question!!

    Thank you to both you and Rob....removing the image and break had no effect in FF but I noticed in IE it made the text in the same position (top) as FF, so I applied the line-height again...and success LOL the text is now nicely centered in IE and FF (needa check the other browsers but I think it will be fine lol), thank you both
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  8. #38
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Subcategory Layout Question!!

    Glad to hear things are now sorted out.

    The line-height equaling the DIV height for centering vertical alignment is a specific IE (any version) workaround. Gecko Browsers (FF, Netscape, Safari for example) do not need it but it causes no negative effect so safe to use.

  9. #39
    Join Date
    Mar 2009
    Posts
    43
    Plugin Contributions
    0

    Default Re: Subcategory Layout Question!!

    How do I increase the row height for the subcategories? I've found where I can change the category product listing rows but not the subcategories. where can I find this in the style sheet? Thanks!

 

 
Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. Edit Subcategory Layout
    By mattk251285 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 25 Nov 2011, 09:51 AM
  2. Changing layout of subcategory
    By rgerards in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 29 Jul 2009, 12:07 AM
  3. Subcategory Image Layout in Explorer
    By dietcokelemon in forum Basic Configuration
    Replies: 2
    Last Post: 4 Aug 2006, 01:21 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