Skip to content

Instantly share code, notes, and snippets.

@dylanized
Created April 29, 2012 00:15
Show Gist options
  • Save dylanized/2522844 to your computer and use it in GitHub Desktop.
Save dylanized/2522844 to your computer and use it in GitHub Desktop.
WordPress default comment template
<ol class="commentlist">
<li class="comment byuser comment-author-admin bypostauthor even thread-even depth-1" id="comment-2">
<div id="div-comment-2" class="comment-body">
<div class="comment-author vcard">
<img alt="" src="#" class="avatar avatar-32 photo" height="32" width="32">
<cite class="fn">admin</cite> <span class="says">says:</span>
</div>
<div class="comment-meta commentmetadata">
<a href="#">April 25, 2012 at 7:22 pm</a>&nbsp;&nbsp;<a class="comment-edit-link" href="#" title="Edit comment">(Edit)</a>
</div>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sit amet ornare massa. Etiam ac lorem justo. Curabitur ac augue sapien, vel sagittis nisl. Duis pretium condimentum hendrerit. Suspendisse ac tellus dui, venenatis laoreet ligula. Integer sapien est, venenatis vel bibendum quis, consectetur id odio. Curabitur mauris libero, rutrum non pharetra aliquam, suscipit id sapien.</p>
<div class="reply">
<a class="comment-reply-link" href="#" onclick="return addComment.moveForm(&quot;div-comment-2&quot;, &quot;2&quot;, &quot;respond&quot;, &quot;94&quot;)">Reply</a>
</div>
</div>
</li>
<li class="comment byuser comment-author-admin bypostauthor odd alt thread-odd thread-alt depth-1" id="comment-3">
<div id="div-comment-3" class="comment-body">
<div class="comment-author vcard">
<img alt="" src="#" class="avatar avatar-32 photo" height="32" width="32"> <cite class="fn">admin</cite> <span class="says">says:</span>
</div>
<div class="comment-meta commentmetadata">
<a href="#">April 25, 2012 at 7:22 pm</a>&nbsp;&nbsp;<a class="comment-edit-link" href="#" title="Edit comment">(Edit)</a>
</div>
<p>Et ligula. Integer sapien est, venenatis vel bibendum quis, consectetur id odio. Curabitur mauris libero, rutrum non pharetra aliquam, suscipit id sapien.</p>
<div class="reply">
<a class="comment-reply-link" href="#" onclick="return addComment.moveForm(&quot;div-comment-3&quot;, &quot;3&quot;, &quot;respond&quot;, &quot;94&quot;)">Reply</a> </div>
</div>
</li>
</ol>
@dylanized
Copy link
Author

This is an example of what WordPress kicks out by default when you run comments_template();

I cleaned up the indenting and removed all the links and img urls, but there is still a lot that smells bad about this snippet. Stashing it away so I can build my own custom template later as part of Bedrock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment