开发者 | davidvongries |
---|---|
更新时间 | 2023年4月17日 08:05 |
PHP版本: | 4.0 及以上 |
WordPress版本: | 6.2 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[wp-video-popup video="link-to-your-youtube-or-vimeo-video"]
in your post, page, custom post type or template file to add a responsive YouTube or Vimeo video lightbox to your WordPress website.
To open the lightbox, simply add the CSS-class
wp-video-popup
to the element you wish to open/trigger the lightbox.
GDPR compliance
WP Video Popup is 100% GDPR compliant. No connection to YouTube or Vimeo is established before the trigger element has been clicked.
Page speed & performance
Embedding YouTube or Vimeo videos can slow down your website. With WP Video Lightbox the video is only being loaded by the click on the trigger element for the maximum performance & fast loading speeds.
Fully responsive
The WordPress video lightbox is fully responsive and adjusts to the device width & height the video is viewed on.
responsive-youtube-vimeo-popup
folder to your /wp-content/plugins/
directory.WP Video Popup doesn’t create an admin settings page. To trigger and display the lightbox popup, please follow the steps under Description.
We add the autoplay attribute to the embed-URL by default. That being said, the video should play automatically after the trigger element has been clicked. Some browsers have changed their autoplay policy and videos only start playing if they're muted.
To mute the video, add the mute="1"
attribute to the shortcode like this:
[wp-video-popup mute="1" video="https://www.youtube.com/watch?v=YlUKcNNmywk"]
Private vimeo videos add an extra string to the URL like this: https://vimeo.com/xxxx/yyyy
.
When adding the URL to the shortcode, try to remove the last string so that your shortcode would look something like this: [wp-video-popup video="https://vimeo.com/xxxx"]
.
portrait="1"
parameter to your shortcode.