Let's introduce how to enable WordPress to support html tags.
Open wp-nodes des/comment-template.php and find the following code: if not commented out, it is the status of open:
The code is as follows: |
Copy code |
1. <? Php echo $ args ['Comment _ notes_after '];? >
|
Comment it out to disable this function:
The code is as follows: |
Copy code |
1. <! -- <? Php echo $ args ['Comment _ notes_after '];? > -->
|
We do not recommend that you delete it directly. If you want to change it back, it is more convenient. After all, the specific effect must be changed before you can know it.
Remove "you can use these HTML tags and attributes ...... "Prompt
By default, a message is displayed below the WordPress comment box:
You can use these HTML tags and attributes:
The code is as follows: |
Copy code |
<A href = "" title = ""> <abbr title = ""> <acronym title = ""> <B> <blockquote cite = ""> <cite> <code> <del datetime = ""> <em> <I> <q cite = ""> <strike> <strong> |
Sometimes looks pretty bad, if you want to remove can modify/wp-des/comment-template.php file, find: <? Php echo $ args ['Comment _ notes_after '];?
, Comment out or delete it. But the comment-template.php is a WordPress core file and will expire if you upgrade WordPress with all the modifications. The best way is to modify the topic file.
Find the comment. Php file of the topic and find
Comment_form ();
Replace it:
Comment_form (array ('comment _ notes_after '=> ''));
If the topic is not standardized, it may not be found.
Comment_form ();
Statement. Modify the theme style.css style sheet and add the following at the end:
Form-allowed-tags {display: none ;}