Remove Comments Function From Page In WordPress

Written by Allen White on. Posted in General, Web

Some templates offer an option to do this automatically, however some do not. To remove the comments function from pages in wordpress is simple. Do as follows.

 

Got to Settings >> Discussion >> “Allow people to post comments on new articles” and remove the tick.

remove comments from pages in wordpress

remove comments from pages in wordpress

Removing the comments section from wordpress pages

This is a little more work. You need to select

Appearance >> Editor

Then under your theme select the page template which is normally called Page.php.

Remove Comments Function From Page In WordPress

Remove Comments Function From Page In WordPress

Once done, normally under or near this line of code <?php the_content(__( you will see line of code like this.

<?php// comments_template( '', true ); ?>

Simply delete that line and then save the template. Make sure you keep a note of the code in case you ever want to add it back in. Job done

 
 

Related Problems

Call To Undefined Function Metadata_Exists After WordPress Upgrade
If your wordpress automatic upgrade failes you may need to do it manaually, here is a guide. Mine failed with the error Call To Undefined Function Metadata_Exists
READ SOLUTION
How to redirect a web page
If you need to redirect your webpages to another page on your site then use this easy guide. How to redirect a webpage using a 301 redirect.
READ SOLUTION
Disable Or Limit WordPress Post Revisions
A step by step guide on how to manage post revisions. This guide will show you limit, remove and even disable wordpress from keeping revisions of your wordpress posts
READ SOLUTION
WordPress “Briefly unavailable for scheduled maintenance”  After Upgrade or Plugin Upgrade
You find that on your wordpress based site you see a message saying "Briefly unavailable for scheduled maintenance" . This can be fixed by removing a file in your ...
READ SOLUTION
Speed Up Your Website
If you think your website is running slow there there are a number of things to do to improve page speed.and loading times. If you are on wordpress there are ...
READ SOLUTION
Stop Losing Pagerank With Nofollow
How and when you should use the A rel="nofollow" tag to keep pagerank on your website. Page rank sculpturing
READ SOLUTION
Remove log on messages on server 2008
When you log on to a 2008 server you see message such as appliying group policy or applying settings, here is how to remove all logon messages in server 2008/sbs ...
READ SOLUTION
Use Google.com not local country redirect
Stop google forcing you to use your countries search page and use google.com instead. Use the NCR command to get to coogle.com
READ SOLUTION
Call To Undefined Function Metadata_Exists After WordPress Upgrade
How to redirect a web page
Disable Or Limit WordPress Post Revisions
WordPress “Briefly unavailable for scheduled maintenance” After
Speed Up Your Website
Stop Losing Pagerank With Nofollow
Remove log on messages on server 2008
Cannot Search From Google.com Search Redirects To Countries

Tags:

Allen White

Allen is a Technical Consultant for an IT company in the North East of England and holds the following accreditations. MCSA, MCSE, MCTS, MCITP, CCA, CCSP, VCP 4,5 and HP ASE, AIS - Network Infrastructure. Backup Academy Certified. I run this site in my spare time so if I help you then PLEASE take the time to share using the share tools on the site.

What Do You Think?

Search Solutions

Categories

(c) Techieshelp.com. Please be aware, all information is provided freely, any information used is done so at your risk and Techieshelp will not be held responsible for any issue that may occur.