[box] CMS: WordPress Difficulty Level: Easy Time: 2-5Min [/box]
If you are a relatively newer user of WordPress, you might not know, that the basic HTML tags can be put in the comment form section of your wordpress blog. This allows the users to format their comments, for instance Linking to a website, making their text bold, italic, or quoting another user in the comment box.
However a lot of non-tech-savvier users don’t know what type of HTML tags are allowed in the wordpress comments form. In order to display the allowed HTML tags, below your blog comment form. You only need to put this small piece of code into your themes comments.php file. So first have a look at the code.
<?php echo allowed_tags(); ?>
As you might know WordPress is written in PHP language hence we are using a PHP code to display allowed HTML tags. To make it even easier I am posting below, the screenshots of every step involved.
Step 1. In your WordPress Dashboard, Goto Appearance > Editor
Step 2. From the left sidebar choose the comments.php file and click on it.
Step 3. Once you have opened the comments.php now scroll down to where do you want to display the allowed HTML tags. Preferably at the bottom of the comment form
As you can see, I have placed the PHP code at the bottom, and wrapped it with the p tag. If you know CSS you can further style it to your liking. Also you may put Line-break tag before it, just to give it space from the form. It’s entirely up to you. After you are done with editing save the file. And your Comment form should look like below.