Hi,
When on mobile, there is invisible box underneath the image I can’t get rid of. Can someone help me on this? I am using Origin Theme.
https://itisoukay.com/products/sample
Thank you.
A user is experiencing an unwanted invisible box appearing below product images on mobile devices when using the Origin theme. They’ve shared a screenshot demonstrating the spacing issue on their product page.
Proposed Solutions:
.product__media-wrapper on mobile.banner--mobile-bottom elements in section-image-banner.css to hide content causing the spaceCurrent Status:
The discussion remains open as the user seeks a solution that works correctly across both mobile and desktop viewports.
Hi,
When on mobile, there is invisible box underneath the image I can’t get rid of. Can someone help me on this? I am using Origin Theme.
https://itisoukay.com/products/sample
Thank you.
hi @gmuink
The invisible box under the image might be caused by an empty container, extra padding, or a div that isn’t rendering content but is still taking up space.
You can try adding the following CSS to your theme’s custom CSS or in the Theme > Customize > Edit code section under base.css (or theme.css, depending on your theme):
@media only screen and (max-width: 749px) {
.product__media-wrapper {
margin-bottom: 0 !important;
padding-bottom: 0 !important;
}
.product__media-wrapper > *:empty {
display: none !important;
}
}
This CSS removes any unnecessary bottom spacing and hides any empty elements inside the product media wrapper on mobile.
Hello @gmuink
Go to online store ----> themes ----> actions ----> edit code ----> assets ----> section-image-banner.css
add this code at the end of the file and save.
@media screen and (max-width: 749px) {
.banner--mobile-bottom:not(.banner--stacked) .banner__content {
display: none !important;
}
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
@Dotsquares Thank you but it did not work on my end.
@Rahul_dhiman Thank you. It did remove the empty space but does not affect desktop view. I see the slideshow on both desktop and mobile view. Can we hide this on desktop view?