Skip to main content

Video Popup

A poster image with a play button that opens the video in a lightbox — YouTube, Vimeo or a self-hosted file. Core has no equivalent block.

The block renders through the video_popup element — the same PHP that runs in the page builder, so the front end is identical either way.

What the sidebar exposes

OptionWhat it does
posterThe still image shown before play
video_urlYouTube, Vimeo or direct file URL
play_labelOptional text beside the play button
captionAccessible label for the play control
designPlay button / overlay design preset
ratioAspect ratio of the poster area
play_sizePlay button size
roundedCorner rounding
overlayDarkening overlay over the poster
hover_zoomZoom the poster slightly on hover
accent_colorPlay button accent
icon_colorPlay icon colour
overlay_colorOverlay colour
label_colorLabel text colour

Anything not listed stays available in the page builder, and round-trips untouched — the block only writes the values you change, so an element styled in the builder keeps every setting this sidebar does not show.

Before it is configured

With neither a poster nor a video URL set, the preview shows the element's own prompt — "Add a poster image and a video URL." That message comes from the shortcode itself, so there is only one empty state to keep correct rather than a separate one in the editor.

The preview is inert

Clicking in the canvas selects the block rather than opening the lightbox. The video plays on the front end.