Responsive embed
-
I’m trying to figure out how to get the embedded videos ([embed] [/embed]) I include in my posts displayed properly. By prpoperly, I mean that neither the default image nor the video should get cropped, keeping and proportions should be kept when resizing.
My posts template have a sidebar, so that the post content width doesn’t correspond to the theme template full width.
Currently, on a full width screen, the YouTube default image doesn’t fit the content width when loading the page: its width is the full screen theme width, so that with that sidebar, the default image is cropped
On mobiles, width of the default image is fine (the sidebar appears below the content on that viewport), but I get black strips over and below the default image.In both case, however, when playing the video, it adapts to the content width, so that it’s not cropped.
Does WordPress has proper native support for responsive embed?
Should I always add a manual div around embeds to get them properly sized.
Or is there something wrong with my post template?Thanks
- The topic ‘Responsive embed’ is closed to new replies.