Archived topic
comments box not showing
15 replies · Started by Bas on March 18, 2019
Hi,
When I create a new post and publish it, the comments box is missing.
The block is there but the content isn't. (comments are enabled)
Older posts with comments are displaying just fine.
If an older post had comments disabled and I enable it, the comments box is not showing as well.
I have no idea what went wrong here...
Hi there,
Can you try #1 here to eliminate any plugin conflicts first?
https://docs.generatepress.com/article/debugging-tips/
Let me know :)
I deactivated all plugins and put Cloudflare in development mode but the problem remains.
I just checked your site and still see lots of plugins activated.
We haven't had any other reports on this and it's working in our latest posts here:
https://generatepress.com/gp-premium-1-8/
Ooh I'm sorry, I activated them again after I checked.
Will deactivate them all now.
Can't really see any reasons for this.
Any custom functions added?
Comments are enabled in the two places mentioned here?
https://docs.generatepress.com/article/removing-comments/
I have some custom functions, most are from here.
If you want I can send you a temp admin account login?
If so, where do I send it?
Can you disable all custom functions and switch to a parent theme if you are using a child theme?
We haven't had this issue reported so I'd assume it's something specific to your install.
I'm using a child theme from GeneratePress.
When I switch to parent GeneratePress, the comments are loading correct.
The weird thing is, I haven't changed anything for months, and only last week the problem started.
Nothing has changed for comments in GP for years :)
Now you just have to figure out which function(s) in the child theme is causing the issue.
I do see now that I have copied over comments.php to the child theme directory for some reason which I can't remember.
I must have added or changed something a while ago.
I'll check them both side by side to see what is causing the problem.
Yup that sounds about right.
Please make sure to go through these debugging tips whenever there are weird issues like this.
Thanks!
Got it.
I altered comments.php to move the reply box to the top of the comments and apparently, it conflicted.
Thanks for pushing me in the right direction.
Have a nice day :)
No problem :)
You as well.
Since it is related to this topic, I am posting here.
I have copied the comments.php to my child theme.
How do I move the comments respond box to the top of the comments so that when they click from the comment links below each post on the home page they directly go to the comments form to write a new comment?
Copying the below code to the top in comments.php does not show the comments at all.
<?php endif;
comment_form();
?>
Please help. Thanks.