Mortgages - Hackers - Books - Hotels in Krakow - iPhone Reviews

PDA

View Full Version : Remove ability to comment - Wordpress.


Kel
Apr 2nd 2008, 6:49 pm
Hi!

I want to use Wordpress as a CMS instead of a blog so I would like to be able to remove the comment box from all the pages.

Does anyone have any idea how this could be done? :confused:

Thanks for your help!

hmansfield
Apr 2nd 2008, 7:31 pm
When you make a new post, there is an option on the top right to allow comments...uncheck the box.

Dondon2d
Apr 2nd 2008, 7:40 pm
In the administrator area, there is an option "Allow people to post comments on the article" under Options > Discussion.

NsaneNoob
Apr 2nd 2008, 7:43 pm
As stated before. Also, if you want more privilages or due to security reasons, there are lots of plugins that are concerned with the comments visibility. I think I saw one like the youtube comments with Spam Rates and etc.

godsofchaos
Apr 2nd 2008, 9:08 pm
Yepp! Just untick anyone can comment and users must be logged in to comment under Discussion.

Then the comment option dont turn up when writing a post.

Habitat
Apr 2nd 2008, 9:47 pm
You can take the comment code off the page

Kel
Apr 2nd 2008, 10:05 pm
Thanks guys,

I have done as advised and now all it shows is "Sorry, comments for this entry are closed at this time."

I would love to be able to get rid of that too if anyone knows how :) I wont be needing comments on the site at all so is there a part of the code I can remove?

Dondon2d
Apr 2nd 2008, 11:38 pm
Thanks guys,

I have done as advised and now all it shows is "Sorry, comments for this entry are closed at this time."

I would love to be able to get rid of that too if anyone knows how :) I wont be needing comments on the site at all so is there a part of the code I can remove?

Dunno if you can remove it, but you can change the message to blank. Just look for this code in \wp-content\themes\themename\comments.php

<?php else : // Comments are closed ?>
<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
<?php endif; ?>

Kel
Apr 2nd 2008, 11:45 pm
Dunno if you can remove it, but you can change the message to blank. Just look for this code in \wp-content\themes\themename\comments.php

<?php else : // Comments are closed ?>
<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
<?php endif; ?>

Yep that will do! :D

Thanks mate!

Dondon2d
Apr 3rd 2008, 12:04 am
No problem. Glad to have helped.

mizaks
Apr 3rd 2008, 5:07 am
In your single.php you could also remove


<?php comments_template(); ?>