Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am building a new website on Wordpress, and all my pages have the add comment box at the bottom. I wish fo rthis to be removed from pages such as Home, Contact Us, About etc etc, but want it to remain on the blogs and galleries.

I have read this question but do not really understand what this means to do. is there an easier way to do it. I do not have this option under Settings -> Discussions.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Since you want comments on posts, I would suggest that you not change the discussion options in the Settings section, but you can enable/disable comments on a per post or per page basis.

In the admin area, click to edit a page that you want to restrict comments from. Then, when you scroll down the page, you will see a section called 'Discussion' and you will have an option to disable comments or trackbacks. If you do not see 'Discussion', scroll to the very top of your page, click on 'Screen Options' and make sure that the checkbox next to 'Discussion' is checked.

Note: Depending on your theme. Your page might display 'Comments Closed', or something to that effect. If that happens and you want to remove that text, you might actually have to get your hands dirty and dig into your Pages template.

share|improve this answer
    
Thank you, I was missing the discussion box from the top, and didn't know that it was there. –  Graeme Hutchison Jan 4 '12 at 13:45
add comment

I have written a plugin for that: How to disable comments for WordPress pages in any theme.

It’s really simple: You just replace the comments_template with an empty file on pages.

share|improve this answer
    
sorry only started using wp this week, how would I do this? –  Graeme Hutchison Jan 4 '12 at 13:38
    
It is explained in the article: You hook into comments_template and point to a file without any output. –  toscho Jan 4 '12 at 14:38
    
sorry thats all jargon, problem solved now anyway. –  Graeme Hutchison Jan 4 '12 at 14:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.