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! 🙂
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