A user is trying to reduce the size of an autoplaying vertical video on desktop view while keeping mobile display intact. They’re using the Dawn theme with a custom video autoplay liquid script from WebSensePro.
Solutions Provided:
Sweans suggested adding custom CSS to theme.liquid file targeting .wbs-pck__image__wrapper with adjusted height values
BSS-TekLabs recommended adding CSS code to base.css or theme.css with height: 100vh !important;
Follow-up Issues:
Original poster requested maintaining full ceiling light visibility while scaling down overall size, accepting side borders
Another user (jrfellers) initially found the solution ineffective but resolved it by adjusting the height value from 100vh to 50vh, noting the CSS was working but required understanding viewport height units
Status: The discussion remains open with partial resolution. The core CSS approach works, but fine-tuning height values and maintaining aspect ratio while preserving specific visual elements requires additional customization.
Summarized with AI on November 2.
AI used: claude-sonnet-4-5-20250929.
To address the issue with the vertical loop video size on the desktop view, you can add custom CSS to adjust the video dimensions. Here’s how to do it in the Dawn theme:
Go to Online Store > Themes.
Click on Actions next to your current theme and select Edit code.
In the code editor, locate the theme.liquid file. This is typically found under the Layout folder.
Scroll to the bottom of the theme.liquid file, and just above the closing tag, add the following custom CSS code:
is there a way to retain the height so that the ceiling light is in full display, but to scale it down in general? It would be ok with borders at the side.
UPDATE! I figured this out…I simply needed to adjust the height value to 50. I initially thought it was not applying after first loading it. I had to delve into what 100vh really meant to understand that I should have expected no difference until I changed the value from 100 to something else.
Hi Sweans,
First, thank you for posting this to the community earlier last year! It was one of the first things that came up when I searched for the same problem. I’m using the same auto play scripted video section shared by the WebSensePro team.
I tried to apply the CSS code you shared to my theme.liquid file but it had no effect whatsoever. My site is www.jiggerjunction.com. I’m trying to narrow the height of the video but ONLY for desktop (it seems to be perfect for mobile). I tried to copy/paste some of that file here, but it seems the forum rules don’t allow that and .txt files can’t be attached.