Position comment form above comments ?
-
I’m creating my first theme.
With comments enabled on posts, the comment form appears below the comments. I’d like to position it above the comment thread.
How do I do this?
So far, I’ve figured out (I could be wrong) that the a comment template is being called by ‘comments_template()’. This pulls the file ‘wp-includes/comment-template.php’.
I’ve made a copy of this in my theme directory, calling it ‘mytheme-comments-template.php. I’m now using the call:
<?php comments_template('mytheme-comments-template.php'); ?>
However, looking at that file, I’m bumping up against my ability to read php. I can see function definitions, but I can’t see where the functions are being called from. I can see the function “comment_form” being defined, but I can’t see it being called.
So how do I modify my template to make the form appear before the comment thread?
- The topic ‘Position comment form above comments ?’ is closed to new replies.