Need some help with a Custom Liquid widget

Hello everyone!

I added a code in a custom liquid section on my homepage to display a video full width on the screen. However the height of the video is too much and the video ends up covering the entire computer screen. I tried reducing the video height in the code below but nothing happens. It’s only the video width that changes if you change the value.

Can someone please help with the code below in order to reduce the height of the video and keeping the same full width? I just don’t want the video to cover the entire screen.

Hi @Loyd77

Could you share your store URL?

@Dan-From-Ryviu

Hello, i sent you a private message with url and password. The video is on the homepage. Thank you!

1 Like

Please update your custom liquid code to this and check again.


@Dan-From-Ryviu

Thanks for the code, but i want to keep the same width ( full width ) it’s just the height that i want to reduce

The video will automatically resize the width based on height, or the height will be cut off if you want to keep full width and reduce height. only.

So i guess i can’t fix the height issue. If i want to keep your code but not apply it to mobiles, can you please update the code for me? So the code will work only for screens over 749px

Thank you

Please update the code to this.


 

Thank you!