Hi there!
My first question is how are you adding that HTML? Are you using a plugin or via the theme?
If you are familiar and comfortable with using hooks you can definitely take a look at what hooks and filters the comment_form()
template tag has available. The one that might be useful would be the comment_form_after
.
Hopefully that helps steer you in the right direction, if not don’t hesitate to ask for more guidance.
I eventually found the easiest way was to just put it inside an if statement at the bottom of the comments.php file.
<?php if ( comments_open() ) : ?>
However, I now have one problem left to solve. I want to put a simple “Comments are closed” message on POSTs where there are NO (0) comments and the comments are closed. The comments template I’m using can actually do something like this for situations where comments exist, but the comments are now closed:
<?php
// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
<p class="no-comments" align="center"><?php _e( '<strong>Comments are closed</strong>', 'twentysixteen' ); ?></p>
<?php endif; ?>
But I’m not sure how to adapt this code so I can do the same thing on posts where there are NO comments and the comments are closed? Any ideas?