Hi,
I have a massive gap on my product pages - only showing on mobile.
I have tried adding codes many times to my theme as per the other questions here but I can’t get it to work.
Any suggestions?
Thanks in advance ![]()
A user encountered a large gap between product images and descriptions on mobile devices in their Shopify store (dailygood.co.nz).
Solutions Provided:
Two community members offered CSS fixes to resolve the spacing issue:
Solution 1: Add custom CSS targeting .product-single .owl-carousel .owl-stage-outer with height: fit-content !important for screens with max-width 947px
Solution 2: Similar approach targeting .product-single__media and related carousel elements with height: fit-content !important for screens with max-width 750px
Resolution:
The issue was successfully resolved. The user confirmed one of the CSS solutions worked perfectly, eliminating the unwanted spacing on mobile product pages.
Hi,
I have a massive gap on my product pages - only showing on mobile.
I have tried adding codes many times to my theme as per the other questions here but I can’t get it to work.
Any suggestions?
Thanks in advance ![]()
Hey @FloB92
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
Thank you!
Hi @FloB92
Please add this code to Custom CSS in Online Store > Themes > Customize > Theme settings to solve the issue
@media (max-width: 749px) {
.product-single .owl-carousel .owl-stage-outer {
height: fit-content !important;
}
}
Hi @FloB92
I hope you are well. You can follow our instructions below:
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/iDxwa8zBQ4Z-
Step 3: Copy the code below and paste it there
Here is the code for Step 3:
@media screen and (max-width: 750px){
.product-single__media {
height: fit-content !important;
}
.product-single__medias.product-images-slider-mobile.product-single__thumbnails > .owl-stage-outer.owl-height {
height: fit-content !important;
}
}
Please let me know if it works. Thank you!
Best,
Daisy - Avada Support Team.
Fantastic thank you so much, this worked perfectly
Happy I could help!