Youtube video does not get embedeed properly

Hello,
I have another trouble with the Illdy theme.
Not sure why, it does not emebeed the video if I use the youtube block… so I have use the Iframe, but then responsivness is lost…
ouch…
http://tobethat.net/

Any suggestion?
Thanks,
Umberto

Hello Umberto

It’s not a theme problem, you are using predefined width in pixels in the Iframe, try to use 100% and check again

I tried, it becomes very small, I am afraid to me this looks like a theme issue.
I just changed it so that you can appreciate that. It is almost a thumbnail…

If I use a standard free theme from wordpress the size is properly rendered.

Thanks and regards,
Umberto

Hi Umberto

Check again, it’s fixed and this is the shortcode I used on the page:

<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }</style><div class='embed-container'><iframe src='YouTube' frameborder='0' allowfullscreen></iframe></div>

Many thanks Noda,
I appreciate your help
Kind regards,
Umberto

Thank you too :slight_smile:

If you’re happy with our service, don’t forget to rate us: [Illdy] Reviews | WordPress.org