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

 
Allen White
Allen is a Consultant for ITPS 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.

ITPS provides strategic IT consultancy, implementation, data centre provision and unified communications, as well as support services and workspace and disaster recovery. If you require a consultation then please contact me via the contacts section or direct on 07931222991, add me on linkedin. https://uk.linkedin.com/in/allenwhiteconsultant0001

Tags:

Leave a comment

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.
!-- BuySellAds On-Site Shopping Cart -->