Open a YouTube video in a popup in WordPress

Clicking the button opens a YouTube video in a popup over a darkened page, and it starts playing. Escape, the close button or a click outside closes it.

Type

An upgrade to the Button block

Find it

Button settings, YouTube URL

Phones

Works with autoplay, Shorts fit the screen height

Speed

Its code arrives only on pages with a video button

What you can change

The settings worth knowing.

The link, its shape and how big the popup gets.

YouTube URL

Any YouTube link

A youtube.com, youtu.be or Shorts link. A start time in the link is kept.

Aspect

Landscape or portrait

Auto makes Shorts portrait and others landscape, or force either.

Popup size

Small to large

Small, Medium or Large, scaled to the screen.

Position

A play icon

Pair it with a leading play icon so people know what’s coming.

How to add it

Three steps. No new tool.

1

Install Grinner free

It’s on WordPress.org. Or go to Plugins, Add New, and search for Grinner Blocks.

2

Choose a button

Use an existing Button, or add one where the video belongs.

3

Paste the link

Add the YouTube URL, choose the aspect and popup size, then publish.

Good to know

Fair questions.

It is a Grinner upgrade to the Button block. Clicking the button opens a YouTube video in a popup over a darkened page, and it starts playing. Use it to offer a video without sending people away from the page.

No, YouTube only.

No. It sits above the sticky header and the sticky CTA bar, and locks page scrolling.

Not yet. Its label is fixed English text.

The popup opens without its fade and grow.

Pairs well with

Try it with these.

An icon before or after the label, with its own hover color.

A YouTube poster with a play button. The player loads only on click.

A tint over a section’s background so the text on top stays readable.

Grinner grinning

Go make something
beautiful.

Free on WordPress.org · No Pro version