Comment Template – first comment on post has no class assigned?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Comment Template – first comment on post has no class assigned?’ is closed to new replies.
(@oloranya)
15 years, 9 months ago
In the comments.php page for my site, there’s a bit of php in there to create a different class for every other comment, which is awesome, but I’ve run into a problem. For some reason, the first comment on each post is not being assigned a class at all. This is the comments.php code (from the whiteboard framework)
and this is part of the html it’s returning:
The relevant bit is here:
<li class="" id="comment-8">It should be:
<li class="standard" id="comment-8">and I can’t figure out for the life of my why it’s not working.