开发者 | davidvongries |
---|---|
更新时间 | 2024年8月27日 15:51 |
PHP版本: | 4.0 及以上 |
WordPress版本: | 6.6 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
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.