Shopify themes, liquid, logos, and UX
Hi,
i have made mobile banner with standard size but it's not fitting properly. however it fits perfectly on desktop view. i tried several codes but unfortunately it's not working.
link: https://advertfox.myshopify.com/
pass: advertfox
Solved! Go to the solution
This is an accepted solution.
Please update the code and check again
@media (max-width: 749px) {
.slideshow__media.banner__media.media.mob {
min-height: 479px !important;
height: auto !important;
}
.slideshow__slide.grid__item {
overflow: hidden;
}
}
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi @Advertfox
You can follow the instruction here :
1. Go to Shopify > Online store > theme > customize
2. Click to Settings > Custom CSS > Paste this code to the section and save.
.banner--adapt, .banner--adapt_image.banner--mobile-bottom .banner__media:not(.placeholder) {
width: auto!important;
height: 100%!important;
max-height: none!important;
}
}
Hi @Advertfox ,
You can follow the steps here:
Step 1: Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
Step 2: From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/ypQ7nly2wv27
Step 3: Copy the code below and paste it there
Here is the code for step 3:
@media screen and (max-width: 768px){
.slideshow__media.banner__media.media.mob {
height: 500px;
}
.slideshow__media.banner__media.media.mob img {
width: 100% !important;
height: auto !important;
}
}
Here is the result:
Please let me know if it works!
Best,
Daisy
Hi,
thank you for your help, i did it but it shows little gray space after the image
Please add more this code to solve the issue with gray space
@media (max-width: 749px) {
.slideshow__slide.grid__item {
overflow: hidden;
}
}
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi,
it's still showing the gray space
Please update the code
@media (max-width: 749px) {
.slideshow__media.banner__media.media.mob { min-height: 479px; }
.slideshow__slide.grid__item {
overflow: hidden;
}
}
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
i added it in custom CSS in theme settings, also tried in my base.css file as well but it didn't worked so i removed it
This is an accepted solution.
Please update the code and check again
@media (max-width: 749px) {
.slideshow__media.banner__media.media.mob {
min-height: 479px !important;
height: auto !important;
}
.slideshow__slide.grid__item {
overflow: hidden;
}
}
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
that really worked, thanks a lot Dan 🙂
all good now 🙂
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