<?php comment_form(); ?>
输出代码目前提交按钮输出以下:
<p class="form-submit">
<input name="submit" type="submit" id="submit" value="Post Comment">
<input type="hidden" name="comment_post_ID" value="486" id="comment_post_ID">
<input type="hidden" name="comment_parent" id="comment_parent" value="0">
</p>
我会把它想输出如下:
<div class="darkbutton" onclick="document.commentform.submit()">
<span class="darkbutton-left"></span><a href="javascript: submitform()">Log In</a>
<span class="darkbutton-right"></span>
</div>
以便完全重新设置按钮。现在我知道这可以通过编辑comment-template.php中的核心Wordpress文件来完成,但是如果有任何其他方法,我真的不希望这样做。
任何建议非常感谢! :)
后,我会很高兴这样做,但我不知道实际的全输出代码是什么! – Tenatious 2012-08-07 16:07:07
有许多钩子和过滤器可以修改评论表单默认http://justintadlock.com/archives/2010/07/21/using-the-wordpress-comment-form – Brad 2014-06-03 15:39:06
@BradDalton,你能指出在哪里该帖子说,如何添加按钮类或'