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.
  • Using default YouTube Embed Code (iframe), but make it responsive
  • 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 ads or even trackers inside.

Arbitrary section

A brief Markdown Example

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

Cons:
1. Only for simple use,not for advanced playlist. 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 訂閱開發記錄

修改日誌

3.2.1

  • Small fixes: Missing double quote from HTML. Now has been fixed.

3.2

  • Small fixes: Missing inline CSS attributes. Now has been fixed.

3.1

  • Small fixes: Remove double slashes from Javascript link

3.0

  • Prevent XSS attacks via Shortcode (thanks to Darius Sveikauskas and yuyudhn from Patchstack for notifying)
  • Optimized database usage

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

2.4

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

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

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

2.2.1

  • Little optimization and remove unecessary codes

2.2.0

  • Bug Fixes break WordPress after update

2.1.0

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

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

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

1.2.6

  • Typo in ReadMe and Description

1.2.5

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

1.2.4

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

1.2.3

  • Add: Google AMP supported

1.2.2

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

1.2.1

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

1.2

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

1.1

  • Fix Bug: Failed to Install
  • Some typos

1.0

  • We just born. Nothing to see here.