如何在 wordpress comments.php 中获取占位符而不是标签?

How to get placeholder instead of label in wordpress comments.php?

我正在使用此代码显示默认的 wordpress 评论模板:

<?php comments_template(); ?>

如何将 name/email/url/comment 标签更改为占位符? 我想我可以修改 wp-includes 文件夹中的注释-template.php 还是应该创建一个 comments.php 文件?

如果您的主题有 comments.php 文件,请编辑该文件并在其中写入您的占位符。否则创建您自己的 comments.php 文件并设计您自己的评论表单。这是参考 link。 http://codex.wordpress.org/Function_Reference/comment_form 或者您可以在任何默认主题中看到 comments.php 文件,例如 "twenty twelve" 干杯!