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.
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.
How to Add Comment Form Quicktags
First thing you need to do is install and activate the Comment Form QuickTags plugin. Once activated, the plugin adds quicktags buttons to comment form on your website. Depending on which HTML tags are allowed on your comment form it will display some basic formatting buttons.
You can create your own quicktags from the plugin’s settings page. Add an ID for the tag, which you can later use for styling purposes. Then add a name for the tag, like for example heading. After that provide start and end tags, like <h4> for start tag and </h4> for end tag. Assign an access key, for example “h”. Save the settings and a heading button will appear in your quicktag toolbar above the comment box.
Comment form quicktag also has the option to enable the quicktags only for selective user roles. You can activate the user role limitation and select from the user roles to enable quicktags only for them. Selecting all the user roles will enable the toolbar for all registered users on your website.
In some WordPress themes, there may be some code conflict with the plugin. In most cases it is just CSS. For example, Comment Form Quicktags does not appear correctly with the Twenty Eleven theme. The label for the form appears above the toolbar and to fix this you need to edit Twenty Eleven theme or create style rules for quicktag toolbar. Also note that Comment Form Quicktags plugin is not compatible with Jetpack Comments module.
Do you think that adding quicktags in comments is a good idea? or is it a waste of time? Let us know your thoughts in the comments.