• Hi guys,
    the default WP function that draws comment structure, comments_template(), doesn’t add an heading to comments body (well, <article>…</article>) and w3c reports a warning for every comments in a post.

    Is there a way to solve this without manually alter the WP code? I was hoping to somehow “overwrite” or “redeclare” the html5_comment() function (inside WP-includes/comment-template.php), that is the one that physically writes the comment structure but I’m getting tons of errors (and I’m not an expert in that).

    The only alternative I’m seeing is just edit the file but then, of course, I’ll have to do that at every WP update.

    Any suggestion? Thanks.

    P.S. I know they’re just warnings but I want to get rid of them anyway. 🙂

  • The topic ‘Add heading to comments’ is closed to new replies.