New Landing How can we help? Themeforest Theme Support Neighborhood Category Page: Fixed height or based on image

Viewing 11 posts - 1 through 11 (of 11 total)
  • #66537
    jamied1981
    Member
    Post count: 13

    Hi,

    I have a number of product feeds that import products from a number of different webstores. I’ve set the width of each image to be 270px wide and have left the height as blank, so it defaults to the correct scaled down size when importing the images.

    I have a problem however that when a image is imported and is smaller than the largest height image it crops the images in that category. example found here – http://districity.com/product-category/tops/page/9/ . I’ve noticed some styling that overwrites my own styling…

    <figure style=”padding-bottom: 303px;”>

    Is there a way to remove the height, so it just scales down the image, but the product titles are at different levels etc. Or is there an easy way to set a minimum height so I can set this to the largest height image.

    Cheers,

    Jamie

    #66841
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css to use minimum height
    .woocommerce ul.products li.product a img{min-height:377px;} /* you can change the height*/

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #66845
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Not sure if it’s good practice to not set the height for your images, also not sure if it will work like you want it to. I think the image height is worked out by the height of the first image. It’s the way woocommerce works. Changing the padding may cause issues on smaller screens as the padding is worked out for each screensize

    – Kyle

    #66873
    jamied1981
    Member
    Post count: 13

    Hi Kyle/Mohammad,

    Thanks for the feedback. I will look into these and let you know. Ideally I’d just want the area the images sits in to be a fixed height, not the actual image. I don’t mind white space between an image and product title, just as long as the largest image displays correctly.

    Please let me know if there is anything I can do to get this functionality?

    Thanks,

    Jamie

    #66895
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hm, something like

    .woocommerce ul.products li.product figure {
    height: 44px;
    }

    ?

    #67809
    jamied1981
    Member
    Post count: 13

    Hi, it doesn’t seem to work. I’ve tried …

    .woocommerce ul.products li.product figure {
    height: 44px;
    }

    and also

    .woocommerce ul.products li.product a img{min-height:377px;} /* you can change the height*/

    But the problem is when the first product is the correct height it adds whatever height I add to the bottom, creating a lot of white space. Any other suggestions?

    Thanks,

    Jamie

    #68129
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please upgrade to latest version of theme Neighborhood 1.70 out last night and let me know your feedback .

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #69162
    jamied1981
    Member
    Post count: 13

    Hi, I have updated the theme, and I have modified the …

    .woocommerce ul.products li.product figure {
    height: 420px;
    }

    It’s almost worked, however it adds the image below, so duplicates, if the image is less than 420px. Am I right in saying I need to edit a template to remove the duplicated image?

    Please let me know details.

    Regards,

    Jamie

    #69288
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use given below code and let me know feedback
    .woocommerce ul.products li.product figure{height:auto;}

    Thanks

    #116461
    Holly & Trisha
    Member
    Post count: 54

    was there any conclusion? I have the exact same problem.

    Thanks

    #116466
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    This issue has been fixed at latest version of theme 1.93.
    Thanks
    Mohammad

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register