Shopify themes, liquid, logos, and UX
Please i need help on how to remove the whitespace from below my image banner on the mobile version.
Hi @torisamorgan ,
You can add code by following these steps
<style>
@media only screen and (max-width: 600px) {
.banner {
height: auto !important;
}
}
</style>
Thanks.
Was I helpful?
Sandesh Paudyal |
| Shopify Developer
Need help with your store?
sandeshpaudyal99@gmail.comFor quick response - Message Me : +9779851353732
thanks a lot this worked
Hi @torisamorgan,
You can try this code by following these steps:
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file base.css, theme.css or styles.css
Step 3: Insert the below code at the bottom of the file -> Save
@media only screen and (max-width: 767px) {
.banner {
height: auto !important;
}
}
Result:
Hope this can help you
Kind regards,
HDL-Shin
- Go to Online Store -> Theme -> Edit code.
- Find the file assets/base.css and paste the code below at the bottom of the file."
@media screen and (max-width: 749px){
.banner--stacked {
height: auto!important;
}
}
Screenshot :-
@devcoders @BrewBrains @HDL-Shin Thank you for your answer. It was really helpful and helped me a lot. Thanks for your answers.
You're welcome! I'm glad I could help. If you have any more questions or need further assistance, feel free to ask anytime.
This is Noah from PageFly - Shopify Page Builder App
Please add code here to fix it:
Step 1: Online Stores > Themes > Edit code
Step 2: Choose file theme.liquid
Step 3: Add code above the tag </body>
<style>
@media screen and (max-width: 767px){
.banner{
height: auto !important;
}
}
</style>
Hope my solution will help you resolve the issue.
Best regards,
Noah | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Hi @torisamorgan,
To address the issue of white space below the image banner, I discovered a solution that doesn't involve adding any code. Instead, simply deselect the 'Show container on mobile' option in the customization settings of the image banner. This adjustment effectively removes the white space below the image banner without any need for additional coding
If my suggestion works for you, please let me know by giving it a like or marking it as a solution. Thanks!
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025