欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

wordpress缩略图_如何在WordPress中添加精选视频缩略图

最编程 2024-03-10 12:01:16
...

wordpress 缩略图

Recently one of our users asked if it was possible to add a video as a post thumbnail instead of a featured image? By default, WordPress allows you to add featured image with a post, but what if you wanted to add videos instead? In this article, we will show you how to add a featured video thumbnail in WordPress instead of featured image.

最近,我们的一位用户询问是否可以将视频添加为帖子缩略图而不是精选图片? 默认情况下,WordPress允许您在帖子中添加特色图片 ,但是如果您想添加视频呢? 在本文中,我们将向您展示如何在WordPress中添加精选视频缩略图而不是精选图片。

影片教学 (Video Tutorial)

演示地址

If you don’t like the video or need more instructions, then continue reading.

如果您不喜欢该视频或需要更多说明,请继续阅读。

Featured Video Plus

First thing you need to do is install and activate the Featured Video Plus plugin. Upon activation, you can visit the post edit screen by creating a new post or editing an existing one. You will see a new ‘Featured Video’ metabox.

您需要做的第一件事是安装并激活Featured Video Plus插件。 激活后,您可以通过创建新帖子或编辑现有帖子来访问帖子编辑屏幕。 您将看到一个新的“精选视频”元框。

Featured Video Plus Edit Screen

All you need to do is paste the video URL, and the plugin will automatically fetch and display a preview in the metabox.

您所需要做的就是粘贴视频URL,该插件将自动获取并在metabox中显示预览。

When you preview your post on your website, the featured image will be replaced by the video. Your preview may look different, depending on how your theme handles featured images.

当您在网站上预览帖子时,精选图片将替换为视频。 您的预览可能看起来有所不同,具体取决于主题如何处理特色图像。

配置精选视频设置 (Configuring Featured Video Settings)

You can fine tune featured videos on your site by visiting Settings » Media.

您可以通过访问设置»媒体来微调您网站上的精选视频。

Configure featured video settings

First you need to choose the usage settings. The default choice is to automatically replace featured image with the video. You can change it to open the video only when featured image is clicked, or to display featured video and auto-play if possible.

首先,您需要选择使用设置。 默认选择是自动用视频替换特色图像。 您可以对其进行更改,以仅在单击特色图片时打开视频,或者在可能的情况下显示特色视频并自动播放。

If you choose none of the above, then you can manually display featured video with shortcode or PHP functions.

如果您不选择上述任何一项,则可以使用简码或PHP函数手动显示精选视频。

Next, you can enable autoplay for your videos and adjust the video size. The default size is set on auto, but if that doesn’t work with your theme, then you can manually enter the height and width.

接下来,您可以为视频启用自动播放并调整视频大小。 默认大小设置为“自动”,但是如果不适用于您的主题,则可以手动输入高度和宽度。

Among other options, you can configure how to handle local videos. These are manually uploaded videos which is a bad option. See why you should never upload a video to your WordPress site.

在其他选项中,您可以配置如何处理本地视频。 这些是手动上传的视频,这是一个不好的选择。 了解为什么不应该将视频上传到WordPress网站

The plugin can handle YouTube, Vimeo, and DailyMotion videos, and we recommend you upload on one of those sites.

该插件可以处理YouTube, Vimeo和DailyMotion视频,我们建议您在这些站点之一上载。

Click on Save Changes button when you are satisfied with the settings.

对设置满意后,单击“ 保存更改”按钮。

That’s all, we hope this article helped you add featured video as featured image in WordPress. You may also want to take a look at these useful YouTube tips to spice up your WordPress site with videos.

仅此而已,我们希望本文能帮助您在WordPress中将特色视频添加为特色图片。 您可能还想看看这些有用的YouTube技巧,以通过视频为WordPress网站增添趣味

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Google+.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterGoogle+上找到我们。

翻译自: https://www.wpbeginner.com/plugins/how-to-add-featured-video-thumbnails-in-wordpress/

wordpress 缩略图