Shopify themes, liquid, logos, and UX
Hi, how can I set the image in this section to always be a square that scales according to the screen resolution?
Here’s a store where it works exactly how I want it too: https://tomnoske.store/
And here’s my store: https://1049xn-ya.myshopify.com/
Thanks a lot,
Tim
Hi @CreatorTim
I hope you are well. You can follow our instructions below:
1/ Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
2/ From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/iDxwa8zBQ4Z-
3/ Copy the code below and paste it there
Here is the code for Step 3:
{% style %}
{% if template.name == "index" %}
main#MainContent > div:nth-child(1) .image-with-text__media > img {
height: auto !important;
aspect-ratio: 1 / 1 !important;
top: 50% !important;
transform: translateY(-50%) !important;
}
{% endif %}
{% endstyle %}
Please let me know if it works. Thank you!
Best,
Daisy - Avada Support Team.
Hey, it’s not working… It only works for page widths of 749px and above. I need it to work primarily for page widths below 749px.
You can check it out here: https://1049xn-ya.myshopify.com/
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025