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

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

WBOY
Release: 2016-06-06 20:24:44
Original
1456 people have browsed it

通过
<?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>
Copy after login
Copy after login

但是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>
Copy after login
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template