How to Make Embedded YouTube Videos Responsive
-
Howdy,
I’m embedding YouTube videos on my self hosted WordPress blog, and I’d like to make it responsive. The only part of my blog posts that is not responsive is the YouTube Embed.
Here’s my code:
[(embed) width=”420″ height=”315″]https://www.youtube.com/watch?v=WP9rd5j-mZM[(slash)embed]
Take out the parentheses and change “slash” into “/”.
Without the width and height, the video’s monstrously large. It may be responsive that way, but it’s obnoxious on desktops.
I tried width and height at 100%, 50% and other settings, but it doesn’t work. It’ll produce nothing but a tiny video. Any ideas?
The worst thing WordPress has ever done is the automatic stripping of html code that people add in the text editor. [Rude comments moderated – if you want help on these forums, that’s not going to help you get it]
- The topic ‘How to Make Embedded YouTube Videos Responsive’ is closed to new replies.