same image size in product sheet

same image size in product sheet

arg99
New Member
7 0 0

HI,

How could I make all the images always have the size of 900x1200 in the product sheet automatically? I don't know what the code would be like
My theme is Studio 4.0.1

 

thanks

Reply 1 (1)

DaisyVo
Shopify Partner
3434 393 475

Hi @arg99 

 

In order to fulfill your request, please follow these steps
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head>

 

{% style %}
{% if template.name == "product" %}
img{
width: 900px !important;
height: 1200px !important;
}
{% endif %}
{% endstyle %}

 

I hope this helps

 

Best,

 

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution