إعادة النظر في حجم تضمين يوتيوب

Works great! Thank you! :blue_heart:

إعجابَين (2)

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 إعجابات

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)

Nothing special, just update to latest.

4 إعجابات

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)

Set the div size with CSS.

3 إعجابات

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

إعجاب واحد (1)

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)

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)

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)

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 إعجابات

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

3 إعجابات

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

إعجاب واحد (1)

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