WordPress主题制作全过程(十):制作comments.php

   2025-07-24 admin00100

前面给大家介绍了《wordpress主题制作全过程(九):制作single.php》,本文继续给大家介绍如何制作comments.php,下面一起来看一下吧~

今天我们来制作评论主题的评论模块。在主题目录Aurelius下新建comments.php,在single.php剪切以下代码,粘贴到comments.php:

<!–Comment’sList–><h3>Comments</h3><divclass="hrdottedclearfix"></div><olclass="commentlist"><liclass="comment"><divclass="gravatar">@@##@@<aclass="comment-reply-link"href=">Reply</a></div><divclass="comment_content"><divclass="clearfix"><citeclass="author_name"><ahref="">JoeBloggs</a></cite><divclass="comment-metacommentmetadata">January6,2010at6:26am</div></div><divclass="comment_text"><p>Donecleo.Aliquamrisuselit,luctusvel,interdumvitae,malesuadaeget,elit.Nullavitaeipsum.Donecligulaante,bibendumsitamet,elementumquis,viverraeu,ante.Fuscetincidunt.Maurispellentesque,arcuegetfeugiataccumsan,ipsummimolestieorci,utpulvinarsapienloremnecdui.</p></div></div></li></ol><divclass="hrclearfix"></div><!–CommentForm–><formid="comment_form"action=""method="post"><h3>Addacomment</h3><divclass="hrdottedclearfix"></div><ul><liclass="clearfix"><labelfor="name">YourName</label><inputid="name"name="name"type="text"/></li><liclass="clearfix"><labelfor="email">YourEmail</label><inputid="email"name="email"type="text"/></li><liclass="clearfix"><labelfor="email">YourWebsite</label><inputid="website"name="website"type="text"/></li><liclass="clearfix"><labelfor="message">Comment</label><textareaid="message"name="message"rows="3"cols="40"></textarea></li><liclass="clearfix"><!–AddCommentButton–><atype="submit"class="buttonmediumblackright">Addcomment</a></li></ul></form>
 
举报收藏 0打赏 0评论 0
 
更多>同类资讯
推荐图文
推荐资讯
点击排行
网站首页  |  关于我们  |  联系方式  |  用户协议  |  隐私政策  |  版权声明  |  网站地图  |  RSS订阅  |  京ICP备2024057451号-2