
The “Pages” I mention here are contains of “About Me”, “Contact Me” etc. You might be curious why WordPress application allow a Comment to be posted in your “Pages” if you do not want to. Here I have solution for you how to disable Comments in your “Pages”.
1. Sign-in to your WordPress admin.
2. Hover to the “Appearance” on left side bar then select “Editor”.
3. From the right side bar, select “Main Index Template (index.php)”.
4. Pointing and click your cursor in “Index.php” template box, from the keyboard press “Ctrl+F” to find below script:-
</div>
<?php if (is_singular()): ?>
<div>
<?php comments_template(); ?>
</div>
WARNING: Please Make a Backup Before Replaced Any Value in Index.php
5. Then replace with below script:-
</div>
<?php if (!is_page(“contact-me”) and !is_page(“about-me”) ) {comments_template();} ?>
</div>
Remarks:- You may replace “contact-me” and “about-me” with your own Pages Titles.
6. Now refresh or reload your browser have a look on the changes.