이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Responsive oEmbed

설명

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).

Unlike other plugins, this plugin does not use any JavaScript!

The aspect ratio is calculated from the (iframe, object or embed) HTML tag width and height attributes. An aspect ratio will only be applied, if both width AND height attributes are given by the oEmbed element and if there is no data-secret attribut set (because those are handled via wp-embed.js). Some oEmbeds have no width or height attributes set, because they calculate their dimension via JavaScript. In those cases this plugin has no effect.

You can find a list of all oEmbed sites supported by WordPress here.

설치

  1. Upload responsive-oembed.zip to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. 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.

후기

2019년 4월 30일
I followed the minimal instructions but the plugin did nothing. My embedded content was still NOT responsive.
2018년 1월 5일
It works perfect! I had purchased a minimalist theme (those built for being fast) but it had an issue with oembed videos. This plugin saved my life! Thanks.
모든 3 평가 읽기

기여자 & 개발자

“Responsive oEmbed”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Responsive oEmbed”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.4.1

  • WordPress 5.1 compatibility check and readme.txt update.

1.4

  • Exclude WordPress post embeds, because their size is handled via wp-embed.js.

1.3

  • Fixed problem with unexpected margins in frontend and backend.

1.2

  • Changed wrapper HTML tag to div to prevent parsing errors, when there are blockquotes or other p tags inside the oembed code.

1.1

  • Allow any aspect ratios.

1.0

  • First release