Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hey guys I have a multi column video section on my store and for some reason my videos kind of cropped themselves does anyone know how to fix this?
thanks
Solved! Go to the solution
This is an accepted solution.
You can easily avoid cropping, by adding this code to the "Custom CSS" setting of this section:
[class*=multicolumns] video {
object-fit: contain;
}
Do not edit theme code -- this will make future theme updates complex.
But this will not look great:
In my opinion they look pretty good the way they are now...
What's your store url ?
Go to your online stre -> edit code -> base.css file and paste this code there
@media (min-width: 768px) {
.multicolumns-item-video-template--17957280186504__ss_multicolumns_video_ecCHnG video {
width: 100% !important;
height: auto !important;
object-fit: contain !important;
}
}
This is an accepted solution.
You can easily avoid cropping, by adding this code to the "Custom CSS" setting of this section:
[class*=multicolumns] video {
object-fit: contain;
}
Do not edit theme code -- this will make future theme updates complex.
But this will not look great:
In my opinion they look pretty good the way they are now...