Can anyone help me adjust the crop ration of this hero video?
I’m having trouble making sense of the specific liquid.
I am working on this webpage:
pw : SOKsummer225
A user is seeking help adjusting the crop ratio of a hero video on their Shopify store (theshadesofkco.com). The main issue is making the video display properly across different devices.
Proposed Solution:
.t4s_ratio class--t4s-aspect-ratio: 178% to match the video’s dimensionsmax-height: 88vh to prevent excessive vertical spaceKey Consideration:
The video is portrait-oriented, which creates display challenges. The ideal solution would be using separate videos: portrait for mobile and landscape for desktop.
Status: The discussion remains open with one technical solution provided but not yet confirmed as implemented or resolved.
Can anyone help me adjust the crop ration of this hero video?
I’m having trouble making sense of the specific liquid.
I am working on this webpage:
pw : SOKsummer225
okay
let talk
I believe you can amend this in Section settings, but I do not have this theme to confirm.
Anyway, you should be able to do it using “Custom CSS” setting of this section (178% is your video aspect ratio):
.t4s_ratio {
--t4s-aspect-ratio: 178%;
}
However, this will make your video too tall on desktop, because it’s a portrait video.
You may then add a rule like this to still crop the video to fit in window:
@media (min-width:768px) {
.t4s_ratio {
max-height: 88vh;
}
}
Ideally you should have portrait video for mobile and landscape one for desktop…