Image cropping of images

Hello,

I am having an issue where the top of my product images are being cut off when I add them to my main page.

Please see the attached picture, the models are missing their heads.

How can I solve this? I have ticked the option to fit the whole image but then this extends the section, making it too long.

I am using the Prestige theme. Please see the URL - mutu-store

Many thanks, Josh

Hi @jking403

You can solve it by adding this code to Custom CSS of that section in Online Store > Themes > Customize

.content-over-media--md {
    --content-over-media-height: clamp(100%, 100vw, 36rem);
}

1 Like

Hi @jking403 ,

I am from Mageplaza - Shopify solution expert.

You can achieve your requirement by add custom CSS rules:

  1. Go to the Shopify Admin Panel
  • Log in to your Shopify admin dashboard.
  • Navigate to Online Store > Themes > Click Theme Settings > Expand Custom CSS.
  1. Add custom CSS:
.content-over-media img {
    object-fit: contain;
    height: 100%;
}
  1. Save changes and test

Please leave a comment if it functions as you expected. :slightly_smiling_face:

1 Like

Hello @jking403
Go to online store ----> themes ----> actions ----> edit code ---->theme.css
add this code at the end of the file and save.

.content-over-media--md {
--content-over-media-height: clamp(25rem, 100vw, 66rem) !important;
}

Thanks

1 Like