如何在WordPress中轻松替换图像和媒体文件

Have you ever tried replacing an image that you uploaded in WordPress? If you did, then you probably had to upload a new file, rename it, and insert it into the post while replacing the old file. Now wouldn’t it be nice if you could do all of this with just few clicks? In this article, we will show you how to easily replace attachment files in WordPress.

您是否尝试过替换在WordPress中上传的图片? 如果这样做了,那么您可能必须上载新文件,将其重命名,然后在替换旧文件的同时将其插入到帖子中。 现在,如果您只需单击几下就能完成所有这些操作,那不是很好吗? 在本文中,我们将向您展示如何轻松地替换WordPress中的附件文件。

影片教学 (Video Tutorial)

演示地址

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

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

First thing you need to do is install and activate the Enable Media Replace plugin. Once activated, it works out of the box, and there are no settings for you to configure.

您需要做的第一件事是安装并激活Enable Media Replace插件。 激活后,它即开即用,没有可供您配置的设置。

All you need to do is visit Media » Library in your WordPress admin area. If you are using the grid-view, then you would need to switch to the list view.

您需要做的只是在WordPress管理区域中访问Media»Library 。 如果使用的是网格视图,则需要切换到列表视图。

Now locate the file that you want to replace. Once you found the file, take your mouse near the file name, and you will see a link labeled ‘Replace Media’.

现在找到您要替换的文件。 找到文件后,将鼠标移到文件名附近,您将看到一个标记为'Replace Media'的链接。

Replace media link in the media library

When you click on the link, it will take you to replace media page. There you need to upload your new file by clicking on the Choose File button.

当您单击链接时,它将带您替换媒体页面。 您需要在此处单击选择文件按钮来上传新文件。

Once you choose the file, you have two options that you can choose. You can choose to only replace the file, or you can replace the file, use new filename, and update all links pointing to the old file.

选择文件后,您可以选择两个选项。 您可以选择仅替换文件,也可以替换文件,使用新文件名并更新指向旧文件的所有链接。

After choosing one of the options, simply press the upload button.

选择其中一个选项后,只需按上载按钮。

Replacing old file by uploading new media

WordPress will now upload your media file, and the plugin will replace the old media file. If you opted to use new filename and update links, then the plugin will take care of that as well.

WordPress现在将上传您的媒体文件,并且该插件将替换旧的媒体文件。 如果您选择使用新的文件名并更新链接,则该插件也将解决该问题。

You can now visit your posts or page where you had this media file attached and see it replaced with the new file you just uploaded.

现在,您可以访问附加了此媒体文件的帖子或页面,然后将其替换为刚上传的新文件。

We hope that this article helped you find an easier way to replace attachment files in WordPress.

我们希望本文能帮助您找到一种更简便的方法来替换WordPress中的附件文件。

If you just wanted to rename media files, then you may want to checkout our tutorial on how to easily rename images and media files in WordPress.

如果您只是想重命名媒体文件,那么您可能想查看我们的教程,该教程如何在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-easily-replace-image-and-media-files-in-wordpress/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值