Introduction
Avoid loading YouTube player each time your page loads which impacts performance. Using the shortcode provided by this plugin, a banner image with play button will be displayed instead of the YouTube video iframe. This improves the page load time.
Only after clicking on the play button on the banner image, the embedded YouTube video will be loaded.
Short code Pattern: [eh_optimize_youtube_embed video="youtube_link" banner="banner_image_link_optional" width="560" height="315"]
Example 1 - With Embed Link and Custom Banner:
[eh_optimize_youtube_embed video="https://www.youtube.com/embed/9bZkp7q19f0" banner="http://static.echonest.com/InfiniteGangnamStyle/psy.png"]
Example 2 - With a normal youtube watch link and no banner (a default banner will be displayed):
[eh_optimize_youtube_embed video="https://www.youtube.com/watch?v=9bZkp7q19f0"]
Example 3 - With customized width and height for your Video:
[eh_optimize_youtube_embed video="https://www.youtube.com/watch?v=9bZkp7q19f0" width="560" height="315"]
Discover the finest Wordpress WooCommerce Extensions - XAdapter.com.
- Prevents loading embedded YouTube video player when page loads.
- Clicking on the banner play button loads the Youtube video.
- Works with Wordpress Blog Pages and WooCommerce Product Pages.
- Improved PageSpeed, Slow performance scores. Check it using GTmetrix.
How does it work?
Clicking on the play button on the banner image, the embedded YouTube video will be loaded.
Important Note: For mobile view need to tap twice as autoplay feature is not available in mobile devices.
Please refer the
documentation for more detailed help.
About AdaptXY
We are a group of WordPress and WooCommerce enthusiasts with a vision to solve genuine problems related to WordPress & WooCommerce stores. We offer a wide variety of extensions for WooCommerce. We have premium extensions related to many domains including Shipping, Pricing, Payments and Customer Support.