How to change aspect ratio of product images to 4:5 in product page

I need to change the aspect ratio of my product images to 4:5 instead of 1:1. Can someone please help me do that ?

Hi @shopekaja ,

This is David at SalesHunterThemes.

You can try to follow these steps:

Go to Online Store → Themes → Actions → Edit code.

Go Assets folder → theme.liquid file.

Add the following code in the bottom of the file above tag


If I managed to help you then, don’t forget to Like it and Mark it as Solution!

David | SalesHunterThemes team

This changes it only on the desktop, how do I change it in the mobile version as well?

I’ve checked in the mobile aspect ratio of product images to 4:5