The trigger is a CSS class (wp-video-popup) added to a link, button, image, etc. The second step is to add a trigger that will popup the video. If you don’t use the WordPress Gutenberg editor, paste the shortcode into the page using the classic editor. I’ll open the sample page for editing, and paste the shortcode into a shortcode block. So let’s add that shortcode with the video URL to a page. This is how it looks with a YouTube video URL: Just add the shortcode to a page or post. There’s no setup or configuration necessary to use the plugin. Once you have located the plugin, click the “Install Now” button. In the “Search plugins…” box, enter “WP Video Popup.” In the left column navigation, mouse over the “Plugins” link and click the “Add New” link. Let’s install the plugin and learn how to popup YouTube and Vimeo videos. So we’ll focus on creating popups that your visitor chooses to open. Auto-play is not always a great user experience though (and Google doesn’t like it). The pro version of the plugin also has an option to play the video when a visitor loads a page. The plugin allows us to popup video when the visitor clicks a “trigger.” The trigger can be a link, a button, an image – any element to which you can add a CSS class. And it doesn’t create a connection to the video site until the visitor opens the popup-no more loading of unnecessary page elements. Using the WP Video Popup plugin, the video opens over the top of the rest of the page content. We should be doing all we can to decrease page load times, not to load things that may not be used.Ī video popup solves that problem. That will increase the time it takes to load the page. Maybe worse, embedding video creates a connection to the video site and loads a preview. It takes the visitor away from your site. That’s good for YouTube, but not so good for you. If a visitor wants to make the video larger, their only option is to click the “Watch on YouTube” link. There are a couple of drawbacks to that method, though. When you publish the page or post, the video will appear on the page. Thanks to the WordPress “auto-embed” feature, all you have to do is paste a video URL into the WordPress editor. Can’t You Just Embed YouTube Video?Įmbedding a video from YouTube or Vimeo in a WordPress page is easy. Rather than playing on the page, the video is brought to the forefront, where it’s the center of attention. If you want to present videos on your WordPress website, use a video popup to do it in style! A popup (also known as an overlay or modal) draws attention to the video content.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |