ATTENTION for WP Version 5+: This plugin does not work with Gutenberg (no problems with Classic Editor plugin though)! Gutenberg brings its own CSS for responsive oEmbed elements, so this plugin would double that and create strange effects.
This plugin uses some minimal CSS rules and a wrapping HTML element to maintain the aspect ratio of oEmbed elements with fixed aspect ratio (e. g. YouTube, Vimeo or Soundcloud).
You can find a list of all oEmbed sites supported by WordPress here.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- You’re done! Try pasting a YouTube, Vimeo or any other oEmbed URL into a post. Open the post and resize your browser window, the oEmbed element should scale properly.
Bijdragers & ontwikkelaars
“Responsive oEmbed” is open source software. De volgende personen hebben bijgedragen aan deze plugin.Bijdragers
- WordPress 5.1 compatibility check and readme.txt update.
- Exclude WordPress post embeds, because their size is handled via wp-embed.js.
- Fixed problem with unexpected margins in frontend and backend.
- Changed wrapper HTML tag to div to prevent parsing errors, when there are blockquotes or other p tags inside the oembed code.
- Allow any aspect ratios.
- First release