Hello,
not sure which template you are using, but if you go into the Page Template.php
file, there will be some code relating to “comments_template(), or comments_open(), or something along those lines with a function relating to “comments”
when you do find that part, simply comment out the code and it should work 🙂
Not sure why you want to comment out the code when you can simply disable comments site wide.
I’m sorry lol, I’m quite to to WordPress myself.
I didn’t even know you could do that! That’s a much better idea, don’t touch the code if you don’t have to lol.
Thanks you sir, great tip for future reference.
Actually I like to completely remove the comment section.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
You can do that by creating and activating a child theme and editing a copy of the right file.
But before you do that you may want to consider using a plugin to disable all comments.
http://wordpress.org/plugins/search.php?q=disable+all+comments
It’s an easier thing to do IMHO. That way you don’t have to maintain that child theme when updates happen to the parent theme.
(@kertoon)
9 years, 9 months ago
I tried commenting out the comment template code in content.php. but it is not working.