For Sites: All Sites  * Wordpress   For Browsers: All Browsers  * Firefox  * IE  * Chrome

» Home » Troubleshooter / Web editing » How to remove the HTML tags and attributes option from comment forms in WordPress

How to remove the HTML tags and attributes option from comment forms in WordPress

 

Sometimes you may prefer to avoid your visitors using html in their comments. WordPress usually permits some html tags and attributes, listing them above or below the comment form.

To remove the array of these tags and attributes you can just add this line in you style sheet (style.css) at the folder of your theme.

.form-allowed-tags{display:none;}

If you prefer to edit the php code of your theme, then search for

<?php comment_form(); ?>

and replace it with

<?php comment_form(array('comment_notes_after' => '')); ?>

Enjoy!

Related (automatically selected)

 

 

 

don't miss »     Sleeper   Power Copy   Savy   Windows 8 Gadgetarian
Favorite Launcher   Windows Rule   SearchALL Gadget   Amazon Gadget