Shopify themes, liquid, logos, and UX
Hello, I hope everyone is doing well! Currently, I love how the main image banner, on my homepage, looks on the desktop screen, however, on mobile screens it isn't width enough so you can't see the end sides (right and left) of the image. I'll appreciate any suggestion on how to fix this issue. Thanks in advance!
Url: https://legacymacramestudio.com/
Solved! Go to the solution
This is an accepted solution.
Go to your online store -> customize -> settings -> custom css and paste this code there
@media screen and (max-width: 749px) {
.banner--medium:not(.banner--mobile-bottom):not(.banner--adapt) .banner__content {
min-height: 16rem !important;
}
div.slideshow__media.banner__media.media img {
height: auto !important;
object-fit: contain;
}
}
This is an accepted solution.
Go to your online store -> customize -> settings -> custom css and paste this code there
@media screen and (max-width: 749px) {
.banner--medium:not(.banner--mobile-bottom):not(.banner--adapt) .banner__content {
min-height: 16rem !important;
}
div.slideshow__media.banner__media.media img {
height: auto !important;
object-fit: contain;
}
}
Thank you so much! It worked!
Glad it worked for you
Hi @Patwalters ,
I have reviewed your requirement, you just need to edit css script and the issue will be resolved. You can follow my instructions!
Step 1: Go to Admin -> Online store -> Theme > Edit code:
Step 2: Search for the file base.css. And add this code snippet to the end of the file.
@media screen and (max-width: 749px) {
.slideshow__media.banner__media.media img {
object-fit: contain !important;
height: auto !important;
}
.banner--medium:not(.banner--mobile-bottom):not(.banner--adapt) .banner__content {
min-height: 19rem !important;
}
}
Step 3: Save your code and reload this page.
=>> The result:
I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.
Have a nice day sir!
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024