GeoDirectory SupportWhat is the correct way of removing the comments from the page template? – GeoDirectory Support https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/feed Fri, 14 Mar 2025 17:17:57 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/#post-24412 <![CDATA[What is the correct way of removing the comments from the page template?]]> https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/#post-24412 Mon, 15 Dec 2014 19:13:07 +0000 frantletle What is the correct way of removing the comments from the page template?

]]>
https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/#post-24421 <![CDATA[Reply To: What is the correct way of removing the comments from the page template?]]> https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/#post-24421 Mon, 15 Dec 2014 21:37:07 +0000 Guust In the wordpress settings:

WP admin > Settings > discussion > Default article settings > Allow people to post comments on new articles > Un-tick

It is not really in any template, and turning it off there will not turn it off for existing pages and posts and listings.
You can also control this on a post by post basis.

]]>
https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/#post-25414 <![CDATA[Reply To: What is the correct way of removing the comments from the page template?]]> https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/#post-25414 Wed, 24 Dec 2014 20:29:37 +0000 frantletle actually, that still leaves the comment form on the page.

I did discover this though:

plugins/geodirectory/geodirectory-functions/comments_functions.php

and noticed hooks, etc.. being used. I could probably make the file blank, but prefer the right way using hooks/filters etc

]]>
https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/#post-25420 <![CDATA[Reply To: What is the correct way of removing the comments from the page template?]]> https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/#post-25420 Wed, 24 Dec 2014 22:40:50 +0000 Guust “You can also control this on a post by post basis.”
When you change the main WP settings, that does not change the settings for posts and pages already created.
So you need to go to these posts and untick the “allow comments” box.

]]>
https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/#post-25429 <![CDATA[Reply To: What is the correct way of removing the comments from the page template?]]> https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/#post-25429 Thu, 25 Dec 2014 02:17:45 +0000 frantletle It shows up on Pages as well–no way to untick.

It shows up in other account areas as well.

IS there NOT a way to use hooks to REMOVE the form altogether?

]]>
https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/#post-25430 <![CDATA[Reply To: What is the correct way of removing the comments from the page template?]]> https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/#post-25430 Thu, 25 Dec 2014 02:45:26 +0000 Guust Make sure you tick “Discussion” in screen options.

There is probably a way to edit your templates, but there is really no need for it.

The file you refer to would have nothing to do with pages, comments on pages are WP and theme controlled.
And if you want to hide comments from the GD listings, GD > design > detail > Exclude selected tabs from detail page > reviews

]]>
https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/#post-25458 <![CDATA[Reply To: What is the correct way of removing the comments from the page template?]]> https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/#post-25458 Fri, 26 Dec 2014 04:02:26 +0000 frantletle I want reviews. Just not comments. Anyways, I will work to modify the theme so the comments template doesnt show up in random places.

]]>
https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/#post-25460 <![CDATA[Reply To: What is the correct way of removing the comments from the page template?]]> https://wpgeodirectory.com/support/topic/what-is-the-correct-way-of-removing-the-comments-from-the-page-template/#post-25460 Fri, 26 Dec 2014 07:48:47 +0000 Guust If you do not want to use the WP settings to disallow comments, you can just remove this from your page templates:

<?php comments_template(); ?>
]]>