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.

Related Posts with Thumbnails

RSS feed | Trackback URI

Comments »

No comments yet.

Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.
CommentLuv Enabled

Trackback responses to this post

Get Adobe Flash playerPlugin by wpburn.com wordpress themes