Here’s a link to a post that has no comments posted on it as well:
https://sfinternal.xyz/2020/03/wpcommentstest
your code in https://raw.githubusercontent.com/BorisBox/fonts/master/comments.php checks if there are comments, quite close to the beginning:
<?php
// You can start editing here -- including this comment!
if ( have_comments() ) : ?>
that means, only if there are comments already, most of the rest of the code gets executed.
remove that conditional statement from the code, together with ist corresponding endif;
explanation:
when you view the source code of the test post in the browser, you will see this where the comment form should appear:
<div id="comments" class="comments-area">
</div><!-- #comments -->
this is proof that your comments.php is used.
Thank youuu so much! Saved me from banging my head 😂
Solved!
(@borisbox)
6 years, 2 months ago
Hey so, I’ve customized my comment form a bit by editing comments.php from my theme, but the issue I’m having is that, if I delete all the comments from that post (The one I’ve linked to), the comment section disappears completely.
So yeah, that’s my problem, since, how’s someone supposed to comment in the first place then.. I’m very confused as to why it disappears. If I need to share anything else, please let me know.
Here’s my comments.php & styling for it on github (uploaded for purpose of this thread fyi, not actually linking to it):
https://raw.githubusercontent.com/BorisBox/fonts/master/comments.php
https://raw.githubusercontent.com/BorisBox/fonts/master/comment-form.css
Thanks!
The page I need help with: [log in to see the link]