Blog Post Comment Section

Some time ago, I got help here to remove the comments section from this web address:
http://sanmarinoclub.com/the-san-marino-club-website-gets-a-facelift/

I don’t have a plug-in installed that’s doing the job, so I was wondering if you could tell me how the comments are being hidden, so I can have the option to turn them on again.

Thank you!!

Hi,

Try to check for similar code in your child theme’s functions.php file

Something like this.

function disable_comments_status() {
	return false;
}
add_filter('comments_open', 'disable_comments_status', 20, 2);

You may remove that code to enable your comments section again.

Hope that helps

Sorry, I forgot to mention that I checked there already, and I have no extra code written.
This is all my functions.php file contains:

EDIT: I discovered the issue myself and am sharing in detail in case anyone else has this issue in the future:

When I disabled comments, I did it by clicking on the “Screen Options” button at the top of WordPress within the individual posts themselves. Once clicked, a list appears and you need to check the box for “Discussions”. Afterwards, you scroll down to the bottom of the page and you should see a new settings section for discussions - check or uncheck the box next to “Allow Comments”.

In my case, I had disabled them comments in this way, and then I suspect, perhaps after an update or something, the post defaulted back to that settings section being hidden, but the comments remained off. So, when I went looking, it appeared as though I hadn’t used that method because the section was missing from the post. But, after I made the discussion settings visible again, and checked the box to allow comments, they appeared on the post once more.

For a video demonstration on how to activate/deactivate comments in this way, you can refer to this X Theme forum post: https://theme.co/apex/forums/topic/how-to-disable-comment-section/#post-23787

The link to the video is in the second line of the second comment.

1 Like

Glad you’ve sorted it out and thank you for sharing the solution with us.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.