Shopify themes, liquid, logos, and UX
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
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
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025