Tamaño de inserción de YouTube, revisado

Works great! Thank you! :blue_heart:

2 Me gusta

Latest fixes this thanks to @david work on getting higher resolution thumbnails.

So this video should, fluidly, use the full width of a post area:

7 Me gusta

Just to fully understand, is there anything to do as an admin in order to have these full width video on our forum? New settings to enable or something like that?

1 me gusta

Nothing special, just update to latest.

4 Me gusta

Related question:

How do we put back the original size of the YouTube videos? They’re now way too big for our forum. Most of our members like the smaller size.

Before / after screenshot

1 me gusta

Set the div size with CSS.

3 Me gusta

Getting the following error message, please tell me what happened.

1 me gusta

So, there’s no help for me then?

The person who used to take care of our site is not with the company any longer and the new person doesn’t have much experience with coding, so we’re really flying blind here.

1 me gusta

Is it that straightforward?

I tried changing the width of .lazyYT-container but the preview image is cropped and the height won’t adjust automatically:

image
image

For now if you still have this error, just remove the line 11 of your CSS (it’s not valid CSS) until a solution is found.

2 Me gusta

If you want to keep the aspect ratio of 16:9 you will need to take care to both width and height.

The outside container can be adjusted with the width CSS property, while the height is currently set using a padding-bottom property.

I believe the old values where 480 and 270 respectively.

2 Me gusta

I added a new theme component on your site named YouTube fix. It is already active on your site, feel free to edit the value as you need. To see the changes you should click on the Rebuilt HTML button on posts.

5 Me gusta

Thank you so much for taking care of this! Sorry to be such a bother.

3 Me gusta

Would probably also be a good time to use something like https://github.com/paulirish/lite-youtube-embed

1 me gusta

This topic was automatically closed after 2245 days. New replies are no longer allowed.