How can I fix the image size issue on my product pages?

Topic summary

A store owner encountered an image display problem where tall, narrow product images were appearing without a maximum height constraint, causing other images in the gallery to display too low on the page. This issue affected both desktop and mobile views.

Solution provided:

  • Navigate to Online Store > Theme > Edit code
  • Open the theme.liquid file
  • Paste specific CSS markup code before the tag

The GemPages Support Team provided step-by-step instructions with screenshots to implement the fix. The solution successfully resolved the image sizing issue, allowing all gallery images to display properly regardless of their dimensions.

Summarized with AI on November 21. AI used: claude-sonnet-4-5-20250929.

Hello,

I recently observed a problem with my product pages image gallery. I have many differently sized product images. And some are much higher than wide. These images appear to be displaying at a max width, but no max height.

This affects how other images in the gallery are displayed on the product page when these types of oblong images exist in the same image gallery/slideshow. These other images with proper dimensions are then displayed too low from the top of the page. This is occurring on both desktop and mobile.

How can this be fixed?

Hello @adamsubtractem ,

It’s the GemPages Support Team and we are glad to assist you today!

Could you please share your store URL ( with the password if your store password is enabled ) then I can see and suggest something for you?

Best regards,
GemPages Support Team

Hi there, GemPages! The url is www.tipplergoods.com

There is no password.

Thanks in advance!

Hi @adamsubtractem ,

I would like to give you the recommendation to support you so kindly follow the steps below:

  1. Go to Online Store > Theme > Edit code of your current theme

  1. Open your theme.liquid theme file

  2. Paste the below code before


Let us know how it works for you.

Best regards,
GemPages Support Team

1 Like

Hi @adamsubtractem ,

My solution can be helpful to you.

Let us know how it works for you.

Best regards,
GemPages Support Team

This worked. Thank you!

1 Like

I am glad that my solution is helpful to you.

Best regards,
GemPages Support Team