Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I'm currently using the dawn theme and dealing with quite a few images that have a really big height and a small width and would like to essentially downscale images in the product page so that it fits into a 1080 by 1080 or 1920 by 1080 placeholder. Is there a way i can achieve this by editing the code?
Hi!
Yes that should be possible, send me a link to the page in question and i'll try and get something typed up for you!
Thankyou so much but unfortunately i dont have the link.
This isn't the actual store but here's an example of the problem im facing and would like essentially shrink the image so it fits into a 1080 by 1080 or a 1350 by 1080 placeholder. Also is it possible to remove the image outlines?
Thanks
Without seeing the actual page itself it's hard to get it perfect, but i downloaded the Dawn Theme and found if you find this code below in your 'section-main-product.css'
@media screen and (min-width: 990px)
.product:not(.product--no-media):not(.featured-product) .product__media-wrapper {
max-width: 64%;
width: calc(64% - 1rem / 2);
}
just edit the max width to a lower % and it should scale to a smaller size for you
for some reason i couldn't find this exact code
If you could provide me a store link i'd be more than happy to take a look for you as your code may be different to the base theme
https://www.boneinlayfurnitures.com/ , can you look at my store for the same issue of "Properly size images" on page speed insights?
As i couldn't find the code you provided in this thread earlier.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024