在很多 WordPress 主题评论框下方,都会有这样的文字:

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

尽管这些文字具有提示作用,但难免有些冗余,不妨将其去除。

首先请查看评论模版(comments.php)中有没有相关代码,以 Suffusion 主题为例,编辑comments.php,删除以下代码

<p class="form-allowed-tags">'.sprintf(__('You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s', 'suffusion'), '<code>'.allowed_tags().'</code>').'</p>

如果在评论模版(comments.php)中找不到相应代码(例如 Adventure Journal 主题),不妨尝试修改 wp-includes/comment-template.php,删除以下代码

<?php echo $args['comment_notes_after']; ?>

本作品采用知识共享 署名-非商业性使用-相同方式共享 3.0 协议进行许可,欢迎转载。转载请保留署名(杯茶博客)及本文链接(http://www.buicaa.com/1688/),谢谢。

CC BY-NC-SA 3.0 Sitemap - Baidu-Sitemap