All things Shopify and commerce
My Image Banner for desktop looks great but in the mobile version it cuts it off majorly. I've tried codes found in other discussions but they did not work for me. Website is www.silverandash.co to view the issue.
Thanks for any help!
Hey @silverandashco
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
@media screen and (max-width: 767px) {
html, body {
overflow-x: hidden !important;
}
.banner__media.media.animate--zoom-in.scroll-trigger.animate--fade-in img {
object-fit: contain !important;
}
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Thanks Moeed - the problem is I don't want those big gray bars involved. Is there a way to fix that?
Try this one.
.banner__media img {
object-fit: contain !important;
}
.banner:after, .banner__media:after {
background: transparent !important;
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Thank you for your response! However, it's still not the full image so not what I'm looking for. Any way to still get the full image with no gray bars?
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