wordpress文本编辑_如何在WordPress中编辑文本

wordpress文本编辑

Did you ever want to redact some text in your WordPress blog posts? Redaction is the term used for editing text by blacking out sensitive parts of it. In this article, we will show you how to redact text in WordPress showing the user that some text has been redacted but not giving up the text.

您是否曾经想过编辑WordPress博客文章中的某些文本? 编辑是通过将文本的敏感部分涂黑来编辑文本的术语。 在本文中,我们将向您展示如何在WordPress中编辑文本,向用户显示已编辑了一些文本但并未放弃该文本。

First thing you need to do is install and activate the Guerilla’s Redacted Text plugin. The plugin works out of the box, and there are not settings for you to configure.

您需要做的第一件事是安装并激活Guerilla的Redacted Text插件。 该插件开箱即用,没有可供您配置的设置。

Simply create a new post or edit an existing one. Delete the text you want to be redacted and replace it with this shortcode:

只需创建一个新帖子或编辑一个现有的帖子。 删除要编辑的文本,并用以下短代码替换:

[redacted]

[redacted]

Now when you preview the post, you will notice blacked out space added to indicate redacted text.

现在,当您预览帖子时,您会发现添加了空白空间以指示节录的文本。

Redacted text blocks in WordPress post

The default size of the blacked out area is six character spaces. If you need a larger redacted text box, then you can use the shortcode like this:

涂黑区域的默认大小是六个字符空间。 如果需要较大的编辑文本框,则可以使用如下的简码:

[redacted length="medium"]
[redacted length="large"]
[redacted length="extra"]

[redacted length="medium"]
[redacted length="large"]
[redacted length="extra"]

Please note that, you will actually need to delete the text you want to hide. The purpose of this plugin is not to hide text, but to show that some text has been redacted.

请注意,您实际上需要删除要隐藏的文本。 该插件的目的不是隐藏文本,而是显示一些文本已被编辑。

We hope this article helped you redact text in your WordPress blog posts. You may also want to check out this tutorial on how to show and hide text in WordPress posts with toggle effect.

我们希望本文能帮助您删除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-redact-text-in-wordpress/

wordpress文本编辑

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值