如何在WordPress评论表单中添加Quicktags

By default WordPress comment box allows visitors to use some basic HTML tags in their comments. However, most bloggers are unaware of this and most users don’t know how to write HTML. If you have or want to have specific formatting for your comments, then you can really benefit from this article. In this article, we will show you how to add quicktags in WordPress comment forms which will allow you to better style each comment element while giving your users bunch of quick tags to work with.

默认情况下,WordPress注释框允许访问者在其注释中使用一些基本HTML标签。 但是,大多数博客作者都没有意识到这一点,并且大多数用户不知道如何编写HTML。 如果您有或想要特定的注释格式,那么您可以从本文中真正受益。 在本文中,我们将向您展示如何在WordPress注释表单中添加快速标签,这将使您能够更好地设置每个注释元素的样式,同时为用户提供大量的快速标签。

什么是Quicktag? (What is a Quicktag?)

You are probably wondering what are quicktags? Quicktags are buttons that you can offer users to easily style their comments. For example a simple button to bold highlighted text is a quicktag. When you see a toolbar that has the option to bold, italicize, add headings, etc, those are all quicktags. Now that you know what are quicktags, let’s take a look at how you can add these in your comment form.

您可能想知道什么是快速标记? 快速标记是可以为用户提供的用于轻松设置其注释样式的按钮。 例如,一个用于加粗显示突出显示的文本的简单按钮就是quicktag。 当您看到工具栏具有粗体,斜体,添加标题等选项时,这些都是快速标记。 现在您知道什么是快速标记,让我们看一下如何在评论表单中添加这些快速标记。

影片教学 (Video Tutorial)

演示地址

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

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

如何添加评论表快速标签 (How to Add Comment Form Quicktags)

First thing you need to do is install and activate the Basic Comment Quicktags plugin. Once activated, you need to visit Settings » Discussion page and check the box next to quicktags option.

您需要做的第一件事是安装并激活Basic Comment Quicktags插件。 激活后,您需要访问设置»讨论页面,然后选中quicktags选项旁边的框。

Enable quicktags for comment form

Click on the save changes button to store your settings. You can now visit a single post on your website and scroll down to the comments form. You will see a basic formatting toolbar above the comment text area.

单击保存更改按钮以存储您的设置。 现在,您可以访问网站上的单个帖子,然后向下滚动到评论表单。 您将在注释文本区域上方看到一个基本的格式设置工具栏。

WordPress comment form with basic quicktag buttons

We hope this article helped you add basic quicktags for HTML formatting in comments form. You may also want to see our guide on how to style WordPress comment form.

我们希望本文能帮助您在注释表单中添加基本HTML格式的快速标记。 您可能还想查看有关如何设置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 Facebook.

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

翻译自: https://www.wpbeginner.com/plugins/how-to-add-quicktags-in-comment-form/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值