{"id":287,"date":"2022-10-25T10:47:37","date_gmt":"2022-10-25T10:47:37","guid":{"rendered":"https:\/\/inspirowp.com\/?p=287"},"modified":"2022-10-25T10:52:59","modified_gmt":"2022-10-25T10:52:59","slug":"how-to-add-a-video-popup-in-the-header-hero-in-inspiro-lite-using-gutenberg","status":"publish","type":"post","link":"https:\/\/inspirowp.com\/how-to-add-a-video-popup-in-the-header-hero-in-inspiro-lite-using-gutenberg\/","title":{"rendered":"How to add a Video Popup in the Header Hero in Inspiro Lite using Gutenberg"},"content":{"rendered":"\n

The built-in hero area from the Inspiro Lite<\/strong> theme includes support for video in the background, but there is no option to display a Play icon with a video popup.<\/p>\n\n\n\n

Thanks to a new Gutenberg block<\/a> we’ve released recently, now it’s possible to add a video lightbox at the top of your front page.<\/p>\n\n\n\n

The plugin needed for this tutorial is called Video Popup Block by WPZOOM<\/a>.<\/p>\n\n\n\n

It can be installed in seconds directly from the Gutenberg<\/strong> editor when editing your front page, as this is a single-block plugin<\/strong>, and such plugins can be installed much faster.<\/p>\n\n\n\n

Just click on the \u2795 button from the top-left corner, and start typing something like “video popup<\/em>“. <\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

You’ll be suggested to install our free plugin. Once installed, a new block called WPZOOM Video Popup Block<\/strong> will be available in the editor:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n
\n\n\n\n

Change the Page Template of the Front Page<\/h2>\n\n\n\n

You’ll need to edit your front page and switch to the Homepage (Without Hero Area)<\/strong> page template. This will hide the built-in hero at the top so we can create another one directly in Gutenberg.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

<\/p>\n\n\n\n


\n\n\n\n

Add a Block Pattern with a Cover Block at the Top<\/h2>\n\n\n\n

Inspiro Lite<\/strong> comes bundled with a few built-in block patterns<\/a>. Among them, a few ones are using the Cover Block<\/strong>, which you can use to create a section similar to the hero area:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Once you have added a pattern to the top of your front page, you can add the Video Popup block<\/strong> inside your Cover block.<\/p>\n\n\n\n

For example, you can replace the existing button with a Play Icon<\/strong>:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

You can add a link to a Vimeo or YouTube video and change the icon’s color from the Block settings on the right side.<\/p>\n\n\n\n

When clicking the icon, your video will be loaded in a popup:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

The built-in hero area from the Inspiro Lite theme includes support for video in the background, but there is no option to display a Play icon with a video popup. Thanks to a new Gutenberg block we’ve released recently, now it’s possible to add a video lightbox at the top of your front page. The … <\/p>\n