Shopify themes, liquid, logos, and UX
I have the Dawn theme for my store. I have a banner up. It shows fine on the desktop but on mobile the sides of the banner are cut off. How do i fix this so that mobile shows the full banner?
Solved! Go to the solution
This is an accepted solution.
Please go to your Online store > Themes > Edit code > open base.css file, and add this code at the bottom.
@media (max-width: 767px) {
.banner__media {
height: fit-content !important;
}
.banner__media img {
position: relative !important;
object-fit: contain !important;
object-position: center center !important;
}
}
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Hey @PatriceDianakay
Could you please provide your Store URL and, if applicable, the Password too? Your cooperation is greatly appreciated!
Best Regards,
Moeed
Hi, @PatriceDianakay.
You can follow these steps:
Go to Online Store -> Themes -> Edit code.
Go to Assets folder -> Base.css file.
Add the following code at the bottom of the file.
@media (min-width: 320px) and (max-width: 767px) {
.banner--medium.banner--mobile-bottom:not(.banner--adapt) .banner__media {
height: 19rem;
}
}
Result:
If I managed to help you then, don't forget to Like it and Mark it as Solution.
Still cut off when i do it. Not sure what I'm doing wrong
add !important tag in the code .
Like These and and let me know it's working and not.
@media (min-width: 320px) and (max-width: 767px) {
.banner--medium.banner--mobile-bottom:not(.banner--adapt) .banner__media {
height: 19rem !important;
}
}
Your store link please
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
This is an accepted solution.
Please go to your Online store > Themes > Edit code > open base.css file, and add this code at the bottom.
@media (max-width: 767px) {
.banner__media {
height: fit-content !important;
}
.banner__media img {
position: relative !important;
object-fit: contain !important;
object-position: center center !important;
}
}
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Thank you!!! You are a life saver!
Happy I could help!
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Please go to your Online store > Themes > Edit code > open base.css file, add this code at the bottom
@media (max-width: 767px) {
.banner__media {
height: fit-content !important;
}
.banner__media img {
position: relative !important;
object-fit: contain !important;
object-position: center center !important;
}
}
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024