Home  >  Article  >  Backend Development  >  wordpress有没有不修改comment-template.php自定义评论样式的方法?

wordpress有没有不修改comment-template.php自定义评论样式的方法?

WBOY
WBOYOriginal
2016-06-06 20:24:441424browse

通过
<?php wp_list_comments('type=comment&callback=my_comment'); ?>
comment_form($args)
可以修改一定评论样式

<code><h3 id="reply-title" class="comment-reply-title">
<?php comment_form_title( $args['title_reply'], $args['title_reply_to'] ); ?> <small><?php cancel_comment_reply_link( $args['cancel_reply_link'] ); ?></small>
</h3>
</code>

但是comment-template里这段代码想要修改有没有别的办法?

回复内容:

通过
<?php wp_list_comments('type=comment&callback=my_comment'); ?>
comment_form($args)
可以修改一定评论样式

<code><h3 id="reply-title" class="comment-reply-title">
<?php comment_form_title( $args['title_reply'], $args['title_reply_to'] ); ?> <small><?php cancel_comment_reply_link( $args['cancel_reply_link'] ); ?></small>
</h3>
</code>

但是comment-template里这段代码想要修改有没有别的办法?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn