這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Simple YouTube Responsive

外掛說明

Embed YouTube videos and keept their aspect ratio, just using simple shortcode.

  • Simple shortcode, can be used in the posts or widgets.
  • Insert shortcode directly from post editor.
  • Using default YouTube Embed Code (iframe).
  • Custom aspect ratio, if you want set different porpotion size.
  • Auto centered position. So if you insert it on your post section, the video always on center-aligned.
  • Lazy Load supported.
  • 100% Free! And no annoying ads inside.

Arbitrary section

A brief Markdown Example

Pros:
1. Simple, only using shortcode to use
2. Lazy Load supported
3. Custom parameters for advanced use

Cons:
1. Only for simple use. Embedding one video for each shortcode.

螢幕擷圖

安裝方式

  1. Install plugin from WordPress menu Plugins > Add New
  2. Activate the plugin
  3. Yay! Well done.
  4. Insert your shortcode to the post, or even widgets. Multiple shortcode is supported.

使用者評論

2021 年 10 月 12 日
I've been trying all sorts of fixes for several hours now trying to get a YT video to be responsive... iframe, custom CSS code, other plugins, and NONE of them have worked. Except this plugin! Thank you kindly for the code!
2020 年 11 月 13 日
You can add a line to your functions.php to make videos responsive if you're doing your own theme. However, if you're not, this plugin works beautifully and gives other options like lazy load, etc. If doing your own theme, add: add_theme_support( 'responsive-embeds' );
2020 年 1 月 7 日
This plugin does exactly what it's supposed to do, and is extremely easy to use. I have tried a few ones with the same purpose, and have to say 'Simple YouTube Responsive' is by far the best. I'm really happy I found out about it. Last but not least, the developer is very kind and answers promptly 🙂 I definitely recommend this plugin to anyone interested in showcasing YouTube videos on their WP website in the easiest way possible!
2019 年 11 月 4 日
Your plugin works beautifully and can confirm it's compatible with Gutenberg. 🙂
閱讀全部 11 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Simple YouTube Responsive〉的開發相關工作。

參與者

將〈Simple YouTube Responsive〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0

  • We just born. Nothing to see here.

1.1

  • Fix Bug: Failed to Install
  • Some typos

1.2

  • Fix Bug: Mixed Content on https sites. I’m Sorry, forgot to make https version for embed code :3

1.2.1

  • Fix Bug: PHP Error Divided by zero.
  • Remove: Default Max Width (600px).

1.2.2

  • Add: Alias attribute for inserting YouTube ID. You can using “video” or “v” tags

1.2.3

  • Add: Google AMP supported

1.2.4

  • Fix Bug: Break post when AMP plugin not installed.

1.2.5

  • Little Bug, Fixed.
  • New Contributor
  • New documentation link

1.2.6

  • Typo in ReadMe and Description

2.0.0

  • Add Plugin Option page on Administration Menu.
  • Lazy Load supported
  • Custom video thumbnails on Lazy Load mode.

2.0.1

  • Bug Fixes on AMP
  • Added Troubleshoot options: Javascript placing (sometimes YouTube not working if you using Elementor Pro and using Custom Footer Section). And now you can choose how to place the JavaScript.
  • Typo on shortcode guide. For automatic centered, use center=”” attribute
  • Placing Stylesheet on Header (previously on footer)

2.1.0

  • Bug Fixes on JavaScript Conflict with another plugin. Special thanks to @jkeasley2 for helping resolve this bugs.

2.2.0

  • Bug Fixes break WordPress after update

2.2.1

  • Little optimization and remove unecessary codes

2.2.2

  • More custom parameters added: Loop, Fullscreen, Show video controls bar, Start at, End at

2.3

  • Now you can add your own supported parameters on each shortcode (for advanced use only). See https://developers.google.com/youtube/player_parameters#Parameters for complete list parameters.

2.4

  • Bug Fixes: video player floated to the left on mobile devices

2.5

  • Bug Fixes: On Lazy Load mode, sometimes the width of video not full 100% as it’s container element (as default), caused by Elementor’s CSS