0
正如标题所示,我想修改或自定义cancel_comment_reply_link
而不编辑/wp-includes/comment-template.php
。自定义cancel_comment_reply_link WordPress
在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
?
感谢您的任何帮助。