doushengyou2617 2016-05-23 18:49
浏览 53
已采纳

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

I am using this code to display the default wordpress comments template:

<?php comments_template(); ?>

How can I change the name/email/url/comment label to a placeholder? I thought that I could modify the comment-template.php in the wp-includes folder or should I create a comments.php file?

  • 写回答

1条回答 默认 最新

  • douwen5951 2016-05-23 19:05
    关注

    If your theme has comments.php file then edit that file and write your placeholder there. otherwise create your own comments.php file and design your own comment form. here is the reference link. http://codex.wordpress.org/Function_Reference/comment_form or you can see comments.php file in any default theme like "twenty twelve" Cheeers!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?