Embed Video Thumbnail

外掛說明

Activate this plugin and reduce you page weight by nearly 1mo !

Because embed videos can dramatically increase your page weight and loading time, Embed Video Thumbnail
automatically replace them by their corresponding thumbnail. Videos will then only be loaded after click on thumbnails.

This plugin fixes part of the following “defer parsing of javascript” error in GTmetrix :

xxxx MiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce blocking of page rendering.

Currently supported video hosting services :

  • Youtube
  • Vimeo
  • Dailymotion
  • Facebook

Optional settings :

  • Toggle activation on each hosting services
  • Toggle activation by device (desktop, tablet, mobile)
  • Copy thumbnail on local server for performance improvements
  • Display video title over the thumbnail
  • Toggle video loop on Vimeo and Youtube
  • Import/export settings

Widget :

You can use our Embed Video Thumbnail widget to transform your videos in sidebars.

Custom hosting services can be added with the ikevt_extension_providers hook.
Each hosting service extension must implement Ikana\EmbedVideoThumbnail\Provider\ProviderInterface

Requirements :

  • php 5.6+

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Embed Video Thumbnail submenu in Tools menu in admin panel to configure the plugin

常見問題集

Plugin does not replace embed video everywhere on my website

Unfortunately, Embed Video Thumbnail can automatically replace your embed video ONLY in your posts and pages body.
If you need to trigger video replacement in custom locations on your website, you can use the following filter :

echo apply_filters(‘ikevt_video_to_thumbnail’, ‘https://www.youtube.com/watch?v=uGlpPcCEd8g’);

You can also use our widget to transform videos in sidebars.

Thumbnails are not showing

Make sure allow_url_fopen option is enabled in your php.ini, and php-curl extension is installed and active.

使用者評論

yes

2020 年 5 月 3 日
I tried a lot to speed up my site and also wanted youtube videos, after installing -Embed Video Thumbnail - the GTmetrix was + 10%, thank you
2019 年 12 月 31 日
Speed matters so eliminating Youtube's slow-down until it's actually called upon is an essential for a site carrying embedded videos.
2018 年 1 月 23 日
Muy buena y sencilla, un plugin que hace exactamente lo que uno quiere sin tener cosas adicionales que lo vuelvan mas pesado, gracias me asido muy util
閱讀全部 11 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Embed Video Thumbnail〉的開發相關工作。

Embed Video Thumbnail 外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將 Embed Video Thumbnail 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

2.0.3

  • Fix filter output

2.0.2

  • Remove margin on iframe

2.0.1

  • Add php 5.6+ support

2.0.0

  • Add support for search engines indexing, using native iframe with srcdoc. Use old strategy for IE.
  • Add thumbnails default alt attribute.
  • Add widget to transform videos in sidebars
  • Fix bug where html entities were transformed.
  • [BC] Remove support for php 5.6

1.3.1

  • Removed freemius
  • Refactoring

1.3.0

  • Add FAQ section in readme
  • Add “ikevt_video_to_thumbnail” filter
  • Add Facebook support

1.2.3

  • Fix thumbnail position
  • Add new play button image option
  • Add cookie disabling on youtube videos
  • Add possibility to hide youtube logo and controls
  • Bug fixes

1.1.7

  • Fix youtube thumbnail position
  • Add alt attribute on thumbnail when video title is enabled
  • Fix referer restriction error with youtube API
  • Fix youtube API error
  • Fix issue where video urls were replaced if inside an href tag
  • Fix minor bugs
  • Remove redux framework TGM
  • Add plugin logo in admin settings panel
  • Add en_GB, en_CA and en_AU translations
  • Add settings link on plugins page
  • Add thumbnail copy on local server
  • Add activation toggle by device

1.0.0

  • Stable release