正如标题所示,我想修改或自定义cancel_comment_reply_link
无需编辑/wp-includes/comment-template.php
.
中的代码comment-template.php
如下所示:
<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>
基本上,我想得到cancel_comment_reply_link
超出<h3>
和<small>
-标记为<div>
容器,但我真的不知道如何在不接触的情况下实现这一点comment-template.php
.有没有一个解决方案可以包含在我的主题中functions.php
?
谢谢你的帮助。