How to hide all HTML tags and attributes in WordPress comment form options
by
TheFreeWindows
·
July 24, 2020
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 Posts:
- Remove from WordPress comment forms the directions for allowed HTML tags and attributes
- Batch change the time attributes of your files, with TimeStamp
- Automatically save web addresses, even with a comment, using CopyURL
- Encode special characters to HTML, with RedX HTML encoder
- WordPress Administrator may miss Add New and Delete plugin options
- Instantly hide any or all windows and mute sound, with Clicky Gone
- Hide or Show easily all your desktop gadgets, with Gadgibility
- Bulk add as many tags as you like to a WordPress blog easily
- Exit all or any programs you like with a single click, using Close All Windows
- Create photo collages easily, in any shape or form, with Shape Collage
- Form fully qualified URL links from selected files or folders, with Copy as URL
- Make WordPress Efficient Related Posts plugin show no output at all
Tags: Comment FormsHtml Tags And AttributesPhp CodePhp FormWordpress