Re: Adjust the hetigh of video on home page

Solved

How can I adjust video height on my homepage and enable mobile autoplay?

LEUNGGUOTAO
Excursionist
29 0 4

Hi there

I would like to adjust the hegith of video on homepage .
(1) Is it possible for me to adjust it like 350px?
(2) It can't autoplay on mobile phone ,why?

I really appreciate that !

Thanks!

My URL : sales.bellissimochina.com

 

LEUNGGUOTAO_0-1630909347274.png

 

 

Accepted Solution (1)

LitExtension
Shopify Partner
4860 1002 1160

This is an accepted solution.

Hi @LEUNGGUOTAO,

When you limit the height, the width of the video will be automatically cropped according to the height, this is default. Therefore, you will see the video is not full, even though it is being displayed at 100% width. https://i.imgur.com/q1O92al.png

If you choose to display 100% width and limited height, the video will be cropped like this: https://i.imgur.com/toahxWs.png

So you only have these choices:

1: You need to edit the video with a smaller height and re-upload it.

2: Accept the width is not full. https://i.imgur.com/q1O92al.png

3: The video will be cropped at the top and bottom. https://i.imgur.com/toahxWs.png

Hope it helps.

Please mark as a solution if you find my answer helpful. Thank you and good luck.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify

View solution in original post

Replies 5 (5)

KetanKumar
Shopify Partner
37094 3645 12054

if you have reduced width automation reduce height also mobile some device doesn't support autopay.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
LEUNGGUOTAO
Excursionist
29 0 4

Which means I can't adjust the height ? thanks!

ZestardTech
Shopify Partner
5776 1052 1392

Hello There,

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset >theme.scss.css and paste this at the bottom of the file:

div#shopify-section-16305778073f7b73b8 video {
max-height: 600px;
}
Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing
LEUNGGUOTAO
Excursionist
29 0 4

It aren't full wdith any more after I add the code you sent me into theme-styles.scss 

Is it something wrong?

LitExtension
Shopify Partner
4860 1002 1160

This is an accepted solution.

Hi @LEUNGGUOTAO,

When you limit the height, the width of the video will be automatically cropped according to the height, this is default. Therefore, you will see the video is not full, even though it is being displayed at 100% width. https://i.imgur.com/q1O92al.png

If you choose to display 100% width and limited height, the video will be cropped like this: https://i.imgur.com/toahxWs.png

So you only have these choices:

1: You need to edit the video with a smaller height and re-upload it.

2: Accept the width is not full. https://i.imgur.com/q1O92al.png

3: The video will be cropped at the top and bottom. https://i.imgur.com/toahxWs.png

Hope it helps.

Please mark as a solution if you find my answer helpful. Thank you and good luck.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify