Home Forums WoodMart support forum Help with Setting Minimum Image Height on Cart Page

Help with Setting Minimum Image Height on Cart Page

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #674721

    ivoltbg
    Participant

    Hello,

    how can I also apply a minimum height to the images under the cart on this page:
    https://ivoltbg.info/cart/?
    Can you please assist me?

    We previously used the following CSS for a similar case elsewhere:

    .product-grid-item .product-image-link {
        min-height: 300px; /* Adjust as needed */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    I am attaching a photo to show you in addition.

    Best regards,
    Nikola

    Attachments:
    You must be logged in to view attached files.
    #674724

    ivoltbg
    Participant

    Sharing account details here.

    #674757

    Hello,

    I’ve checked your site, and the images are currently displaying like this: https://postimg.cc/PpGrr2nF

    Please try commenting out the custom CSS under Theme Settings > Custom CSS. This should allow the image container to maintain the specified height.

    Best Regards,

    #674858

    ivoltbg
    Participant

    Hi, I did it, but it still doesn’t work.

    Could you make it so that all product images on this site have a fixed size, and no matter what size image I upload, it stays within that frame?

    Best regards,
    Nikola

    #674938

    Hello,

    As I told you in the previous topic, the product image you’re using is quite short in height (Dimensions: 549×214 pixels), which doesn’t provide enough vertical space to appear correctly.

    To resolve this, I recommend using product images with a more standard aspect ratio, ideally closer to square (800×800px).

    Please follow the image guidelines in the manual below and make sure all product images are uploaded in consistent dimensions:https://xtemos.com/docs-topic/image-size-and-content-alignment-in-a-product-grid/

    Best Regards,

    #675142

    ivoltbg
    Participant

    Hi, thanks for the information.

    Could you please tell me if I understood correctly from what I read — that if I automatically process, for example, larger images like 1000×1000, I can create thumbnails fixed size that crop them to a maximum width? And why only width? What happens with the height?

    Best regards,
    Nikola

    #675202

    Hello,

    You can configure both width and height cropping if needed. The reason “width only” is often emphasized is to ensure that all product cards in the grid align neatly in rows. If height varies too much, it may break the layout visually.

    If you want a fixed width and height crop, go to:

    Appearance > Customize> and set both the width and height with cropping enabled.

    Best Regards,

    #675376

    ivoltbg
    Participant

    Hi,

    thank you. You can close the topic.

    Best regards,
    Nikola

    #675411

    Hello,

    You’re very welcome! If you need anything else, feel free to reach out!

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards,

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

The topic ‘Help with Setting Minimum Image Height on Cart Page’ is closed to new replies.