

A YouTube video popup lightbox on desktop
WP Video Popup is the simple way to add a YouTube, Vimeo or Rumble video popup to WordPress. Show your video in a responsive, minimalist lightbox when visitors click a button, link or image – on any page, post or custom post type, without slowing down your site.
Build your shortcode in seconds with the shortcode builder under Settings WP Video Popup, paste it anywhere and you’re done.
Add a sleek video lightbox with a single shortcode. Let the shortcode create a “Watch video” button for you, turn any image into a video popup, or open the lightbox from any element with a CSS class.
Embedding YouTube or Vimeo videos can slow down your site. WP Video Popup only loads the video once a visitor opens the popup, keeping your pages fast and your Core Web Vitals happy.
The video lightbox adapts to every screen size and supports both landscape and portrait (vertical) videos.
No connection to YouTube, Vimeo or Rumble is made until the lightbox is opened. Use a youtube-nocookie.com link for YouTube’s privacy-enhanced mode.
The popup can be opened and closed with the keyboard, handles focus properly and is labeled for screen readers.
Use it with the block editor (Gutenberg), Elementor, Divi, Bricks, Beaver Builder or any other page builder and theme.
1. Add the shortcode
Paste the shortcode into any post, page, custom post type or template file:
[wp-video-popup video="https://www.youtube.com/watch?v=YlUKcNNmywk"]
Tip: build it with the shortcode builder under Settings WP Video Popup and copy it with one click.
2. Add the trigger
Choose how visitors open the lightbox:
text attribute and the shortcode outputs a button (styled by your theme) that opens the popup:wp-video-popup to any button, link or image:Where to find the CSS class field in your page builder:
The free version supports one video popup per page. Need more? Check out WP Video Popup PRO.
YouTube popup:
[wp-video-popup video="https://www.youtube.com/watch?v=YlUKcNNmywk"]
Vimeo popup:
[wp-video-popup video="https://vimeo.com/136696258"]
Rumble popup (video page or embed link):
[wp-video-popup video="https://rumble.com/embed/v4j2rri/?pub=4"]
Customize the viewing experience with these shortcode attributes:
Button text (outputs a button that opens the lightbox):
text="Watch video"
Mute video:
mute="1"
Start video at a specific time (in seconds):
start="24"
Portrait mode (for vertical videos):
portrait="1"
Hide related videos (YouTube):
Since September 2018, YouTube no longer allows hiding related videos completely. Instead, videos from your own channel are shown.
hide-related="1"
Example shortcode with attributes applied:
[wp-video-popup video="https://www.youtube.com/watch?v=YlUKcNNmywk" mute="1" start="24" text="Watch video"]
To add additional parameters to the embed URL, use the filter below. For example, to show YouTube captions by default:
function prefix_your_custom_embed_url_attributes( $video_url ) {
$video_url .= '&cc_load_policy=1';
return $video_url;
}
add_filter( 'wp_video_popup', 'prefix_your_custom_embed_url_attributes' );
Unlock advanced features like video galleries, self-hosted videos, multiple videos per page & more with WP Video Popup PRO!
PRO Features:
Get WP Video Popup PRO today!
If you like WP Video Popup make sure to check out our other products:
This plugin embeds videos from YouTube, Vimeo and Rumble. The video is only loaded from the provider once a visitor opens the popup. YouTube: Terms, Privacy. Vimeo: Terms, Privacy. Rumble: Terms, Privacy.
For Rumble video page links (e.g. rumble.com/v…-title.html), the plugin asks Rumble’s oEmbed API (https://rumble.com/api/Media/oembed.json) once for the embed ID, sending only the video URL from your site’s server. The result is cached for a month. Rumble embed links (rumble.com/embed/…) need no lookup.