Shopify themes, liquid, logos, and UX
Hello. Could you please help me to adjust banner photo size in mobile devices? Website: lmar-auto.com
Now it looks cropped form both sides in mobile devices.
Thanks in advance.
Solved! Go to the solution
This is an accepted solution.
Hey @elmar6798,
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.
<style>
@media only screen and (max-width: 749px) {
.banner__media.media > img {
object-fit: contain !important;
position: relative !important;
}
.banner__media.media {
height: 100% !important;
position: relative !important;
}
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
This is an accepted solution.
Hey @elmar6798,
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.
<style>
@media only screen and (max-width: 749px) {
.banner__media.media > img {
object-fit: contain !important;
position: relative !important;
}
.banner__media.media {
height: 100% !important;
position: relative !important;
}
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Thanks a lot, it works!
Do you know how to reduce size of the logo in mobile devices?
Found it! 🙂
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