Shopify themes, liquid, logos, and UX
Hi, we have uploaded some images onto our website, which is using the Craft Theme. However, the main image is too bog on the desktop version (however it is perfect on the mobile version). Essentially, the outer areas of the image are being cut off, when the site is viewed on desktop/laptop. See attached image.
I have tried resizing the image various times but this makes no difference. Looking at the threads, it may be that I need to do something with the CSS code but I am at a loss as to where, what and how.
Could anybody kindly advise on what can be done to make the image appear properly please? Thanks, G
Solved! Go to the solution
This is an accepted solution.
Hey @NaturalNoble001,
If you bring in the outer sides of the image, it will leave some gaps as such
If you're ok with that then follow the instructions below.
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
@media only screen and (min-width: 990px) {
#shopify-section-template--21069493731654__collage-0 .product-card-wrapper > .media > img {
object-fit: contain !important;
}
}
Screenshot is for reference only, the correct code to paste is the one shown above.
Hello @NaturalNoble001
Can you share store url?
This is an accepted solution.
Hey @NaturalNoble001,
If you bring in the outer sides of the image, it will leave some gaps as such
If you're ok with that then follow the instructions below.
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
@media only screen and (min-width: 990px) {
#shopify-section-template--21069493731654__collage-0 .product-card-wrapper > .media > img {
object-fit: contain !important;
}
}
Screenshot is for reference only, the correct code to paste is the one shown above.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025