Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1032618

    Hi,
    I am working on a website where we use Woocommerce. The product pages are using the default woocommerce layout with the woocommerce product gallery. The problem we are having is that the images in this gallery are nog the same in height.
    How can i set the height or aspect ratio of the images shown in this product gallery?

    #1032884

    Hey Maarten-dtm,

    Could you post a link to where we can see the results you are getting please?

    Best regards,
    Rikard

    #1033895

    Yes,

    Thit is one of the product pages where the images are different heights. They should all be square.
    Thanks.

    #1034270

    Hi,

    Thanks for that, are you referring to the thumbnails or the large image when selecting one of the thumbnails?

    Best regards,
    Rikard

    #1034338

    The large images. The thumbnails are responding like they should. But the large image is the problem.
    Thanks.

    #1035476

    Hi,

    Thanks for the update.

    This css code should help.

    .woocommerce-product-gallery.woocommerce-product-gallery--with-images div, .woocommerce-product-gallery__image {
        max-height: 297px;
    }

    Best regards,
    Ismael

    #1035490

    Thanks that works. But now the image overlaps the bottom border. Do you have a solution for that as well?

    #1035966

    Hi,

    Maybe, you have to adjust the bottom margin. Have you tried that?

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.