
內容簡介
最佳WordPress影片輕箱外掛!
WP Video Popup 讓您在網站的任何頁面、文章或自訂文章類型添加響應式的 YouTube 或 Vimeo 影片輕箱。
只需幾個點擊,即可在您的 WordPress 網站上添加漂亮、極簡的影片輕箱彈出窗口,而且不會牺牲性能。
在您的文章、頁面、自訂文章類型或模板文件中使用 shortcode
[wp-video-popup video="link-to-your-youtube-or-vimeo-video"]
將響應式的 YouTube 或 Vimeo 影片輕箱添加到您的WordPress網站。
要打開輕箱,只需將CSS類
wp-video-popup
添加到您想要打開/觸發輕箱的元素上。
GDPR合规性
WP Video Popup符合100%的GDPR法规。在單擊觸發元素之前,不會建立到YouTube或Vimeo的任何連接。
頁面速度和性能
嵌入YouTube或Vimeo視頻可能會使您的網站變慢。使用WP Video Lightbox,通過單擊觸發元素只加載影片,最大程度地提高性能和快速加載速度。
完全響應
WordPress影片輕箱是完全響應的,可以自動調整到觀看影片的設備寬度和高度。
用法
顯示YouTube影片輕箱的示例shortcode:
[wp-video-popup video="https://www.youtube.com/watch?v=YlUKcNNmywk"]
顯示Vimeo影片輕箱的示例shortcode:
[wp-video-popup video="https://vimeo.com/136696258"]
需要添加到您想要打開/觸發視頻輕箱的元素的CSS類:
wp-video-popup
觸發元素示例(鏈接):
<a href="#" class="wp-video-popup">播放視頻</a>
Shortcode屬性
可用的屬性可添加到shortcode中提供的視頻鏈接的嵌入URL。
靜音視頻:
mute="1"
隱藏相關YouTube視頻:
自2018年9月以來,不再可能隱藏相關視頻。而是會顯示來自您的頻道的視頻。
hide-related="1"
在特定時間開始播放視頻(以秒為單位的值):
start="24"
肖像模式(僅限於Vimeo):
portrait="1"
帶shortcode屬性的範例shortcode:
[wp-video-popup mute="1" start="24" video="https://www.youtube.com/watch?v=YlUKcNNmywk"]
高級
除了shortcode屬性之外,還有一個可用的過濾器,允許您向嵌入式URL添加更多參數。默認情況下,僅添加autoplay屬性到嵌入URL。
在下面的示例中,我們使用過濾器通過添加modestbranding參數來刪除YouTube品牌的視頻:
function prefix_your_custom_embed_url_attributes( $video_url ) {
$video_url .= '&modestbranding=1';
return $video_url;
}
add_filter( 'wp_video_popup', 'prefix_your_custom_embed_url_attributes' );
WP Video Popup PRO
如需在單個頁面上添加多個彈出視窗、視頻庫、頁面加載時自動播放、自託管視頻等,請查看
外掛標籤
開發者團隊
② 後台搜尋「WP Video Popup – WordPress Video Lightbox for YouTube, Rumble & Vimeo」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
WP Video Popup lets you add a responsive YouTube, Rumble or Vimeo video lightbox to any page, post or custom post type of your website. Add beautiful, minimalist video lightbox popups to your WordPress site with just a few clicks – without sacrificing performance.
Why choose WP Video Popup?
✨Effortless integration
Add a sleek, minimalist video lightbox to any page, post, or custom post type using a simple shortcode.
⚡Performance optimized
Embedding YouTube or Vimeo videos can slow down your site. With WP Video Popup, videos are only loaded when users click to view them, ensuring fast page speeds and optimal performance.
📱Fully responsive
Our lightbox plugin adapts to all screen sizes, offering a flawless viewing experience on any device.
✅GDPR compliant
WP Video Popup is GDPR compliant. No video connections are made until the lightbox is triggered.
How it works
Add the shortcode
[wp-video-popup video="link-to-your-youtube-or-vimeo-video"]
anywhere to your post, page, custom post type or template file to embed the responsive video lightbox to your WordPress website.
Trigger the lightbox: Add the CSS class wp-video-popup to the element that should open the lightbox. This can be any element.
Example (Link):
Watch Video
Example Shortcodes
For YouTube:
[wp-video-popup video="https://www.youtube.com/watch?v=YlUKcNNmywk"]
For Vimeo:
[wp-video-popup video="https://vimeo.com/136696258"]
For Rumble:
[wp-video-popup video="https://rumble.com/embed/v4j2rri/?pub=4"]
Shortcode attributes
Here is a list of available shortcode attributes to further customize the viewing experience.
Mute video:
mute="1"
Hide related videos (YouTube):
Since September 2018, hiding related videos is no longer possible. Instead, videos from your channel will be shown.
hide-related="1"
Start video at a specific time (value in seconds):
start="24"
Portrait mode (Vimeo):
portrait="1"
Example shortcode with shortcode attributes applied:
[wp-video-popup mute="1" start="24" video="https://www.youtube.com/watch?v=YlUKcNNmywk"]
Advanced
To add additional parameters to the embed URL, use the filter below. For example, to remove the YouTube branding:
function prefix_your_custom_embed_url_attributes( $video_url ) {
$video_url .= '&modestbranding=1';
return $video_url;
}
add_filter( 'wp_video_popup', 'prefix_your_custom_embed_url_attributes' );
🚀 WP Video Popup PRO
Unlock advanced features like video galleries, self-hosted videos, multiple videos per page & more with WP Video Popup PRO!
PRO Features:
Multiple popups per page
Self-hosted videos
Video galleries
Autoplay on page load
Adjustable popup size
Customizable Overlay background color
Get WP Video Popup PRO today!
What’s next?
If you like WP Video Popup make sure to check out our other products:
Page Builder Framework – A fast & minimalistic WordPress theme designed for the new WordPress era.
Ultimate Dashboard – The #1 WordPress plugin to customize your WordPress dashboard and admin area.
Better Admin Bar – The plugin to make your clients enjoy WordPress. It replaces the default admin bar to provide the best possible user experience when editing & navigating a website.
