wordpress视频插件_为什么以及如何在WordPress中将iFrame用于视频?

wordpress视频插件_为什么以及如何在WordPress中将iFrame用于视频?_第1张图片

wordpress视频插件

You remember those old embed tags on videos? Yeah, those are going to be outdated pretty soon as the web shifts to HTML5. Almost all major video sites are switching from using Flash video embeds toward using HTML5, and we recommend that you think about doing the same for your WordPress blog. By using the iFrame tag for your videos, you ensure that your videos are displayed for people on the computer, iPhone, iPad or any other device that may come in the near future. Traffic from mobile devices are increasing at a rapid rate, and this is something that we should all be prepared for.

您还记得视频中那些旧的嵌入标签吗? 是的,随着网络转向HTML5,这些内容将很快过时。 几乎所有主要的视频网站都从使用Flash视频嵌入切换为使用HTML5,我们建议您考虑对WordPress博客进行相同的操作。 通过对视频使用iFrame标签,可以确保在不久的将来向计算机,iPhone,iPad或任何其他设备上的用户显示视频。 来自移动设备的流量正在快速增长,这是我们所有人都应该做好的准备。

Youtube, Vimeo, and others have already switched to using the iFrame version as their default method of embedding videos on the web. However for security reasons, the iFrame tag disappears in WordPress when switching from Visual Mode to HTML mode, or vice-versa. It can get very frustrating if you don’t know why this is happening. You may even publish a post only to find out that your video was never included. You might think it is a bug or an issue with your WordPress installation, but it is not. But don’t worry, we have a way for you to use iFrames for Videos in WordPress without a hassle.

Youtube , Vimeo和其他公司已经切换为使用iFrame版本作为将视频嵌入网络上的默认方法。 但是出于安全原因,从可视模式切换到HTML模式时,iFrame标签在WordPress中消失了,反之亦然。 如果您不知道为什么会发生,它可能会非常令人沮丧。 您甚至可以发布帖子,只是发现您的视频从未包含在内。 您可能认为这是您的WordPress安装中的错误或问题,但事实并非如此。 但请放心,我们为您提供了一种在WordPress中轻松使用iFrame视频视频的方法。

One way is to remove the visual editor in WordPress, and you would never have to worry about the iFrames disappearing. However by doing so, you will lose the ability to use the internal linking feature that was added in WordPress 3.1. So this is not that good of an option.

一种方法是在WordPress中删除可视化编辑器 ,而您不必担心iFrame消失了。 但是,这样做将失去使用WordPress 3.1中添加的内部链接功能的能力。 因此,这不是一个好的选择。

The best option is to use a plugin called Iframe. This plugin provides an easy way to insert iFrames in your posts. Here is a step by step guide to install a plugin.

最好的选择是使用名为Iframe的插件。 该插件提供了一种在您的帖子中插入iFrame的简便方法。 这是安装插件的分步指南 。

Once you have installed and activated Iframe, you will get a new shortcode to use in your post. [iframe: ]

安装并激活Iframe后 ,您将获得一个新的简码以在帖子中使用。 [iframe:]

For example, by default Youtube’s iFrame embed code will look like this:

例如,默认情况下,Youtube的iFrame嵌入代码如下所示:


With Iframe plugin, you would simply change the code to:

使用Iframe插件,您只需将代码更改为:

[iframe width=”480″ height=”390″ src=”http://www.youtube.com/embed/fUfgmRCPI0E?rel=0″ frameborder=”0″]

[iframe宽度=“ 480”高度=“ 390” src =” http://www.youtube.com/embed/fUfgmRCPI0E?rel=0” frameborder =“ 0”]

We recommend you start using iFrames for your videos right now and make your site accessible for mobile readers.

我们建议您立即开始为视频使用iFrame,并使移动阅读器可以访问您的网站。

翻译自: https://www.wpbeginner.com/beginners-guide/why-and-how-you-should-be-using-iframes-for-videos-in-wordpress/

wordpress视频插件

你可能感兴趣的:(java,linux,大数据,web,android)