≡ Menu

WordPress: How to Remove Comments Entirely from Pages

In a previous post, I told you how to remove the comment box from a specific wordpress page or post. Sometimes that’s not enough because you still get the “Comments on this entry are closed” message, which is kind of like walking around with your shoes untied, amiright?

wordpress, pages, remove comment box

So how do you get rid of that message? Two ways that I know of.

Pick one:

1. Maybe Your Theme Disables Page Comments For You

The Sticky Readers blog (the one you’re reading right now) uses the Thesis theme and it provides an option with one click. Check your themes options to see if it does this as easily for you. For Thesis themes, go to your WordPress Dashboard and under Thesis, click Design Options. Look for the Display Options section and click on Comments. You can easily switch between having your shoes untied or walking around like a pro by disabling comments on all pages and not showing a message:

wordpress, thesis, comments off, pages

To remove the messages, check the box that says “Disable comments on all pages”. Uncheck the “display a message” option. Don’t forget to click the SAVE button. Check a page or two…

wordpress, comments disabled, no comment message

no more "comments are closed" messages! woo hoo!

…and then there’s the other option…

2. Modify Your Page.php File

 

Take a deep breath, we’re going into the code.

On your WordPress dashboard, on the left-hand side click on Appearance, then Editor.

wordpress, edit template

On the right-hand side of your dashboard, a list of Templates will appear. Select the one labeled Page Template (page.php).

wordpress, edit template, page.php

Your Page.php code will appear in the center window.  Scroll down a few lines until you see:

<?php comments_template(); ?>

wordpress, edit themes, page.php

OK, are you still holding your breath? Delete that line. No, wait!

If you want to be paranoid, comment out the line, rather than delete it. This means ADDING a few characters to the line to render it useless, but you still have it in there in case you change your mind later.

To comment out the line, insert 2 forward slashes: //    just before the comments_template() string.

Like this:

<?php //comments_template(); ?>

Here’s what it looks like in the page.php file:

wordpress, edit pagephp, remove comments

Insert 2 forward slashes: // just before the comment_template()

This way, you can revert back if something goes horribly wrong.

Whether you delete the line or comment out the line, be sure and SAVE your changes.

Now, exhale.

Please note, this method disable comments for WordPress PAGES only, not blog posts.

Again, if you just want to “turn off” comments, which removes the comment form, and don’t mind the “comments are closed” message that appears, those instructions are here.

{ 11 comments… add one }

  • Sherri April 11, 2012, 10:30 am

    YOU are an angel. I have been searching for this option ALL. DAY. Now my bra strap will never show EVER AGAIN!

    Thank you!!!

    • Margaret April 11, 2012, 2:34 pm

      Hi Sherri! I’m so glad you have fixed your bra strap issue!

  • Dave December 7, 2012, 2:52 pm

    Thank you so much! I have been getting hit hard with a ton of spam on my portfolio site and was tryign to figure this out! Your a life (and time) saver!

  • dr seuss stationary July 12, 2013, 2:23 am

    I believe that is one of the such a lot important information for me.
    And i’m satisfied reading your article. However want to observation on some common things, The web site style is wonderful, the articles is really nice : D. Excellent activity, cheers

  • Terminix July 19, 2013, 9:55 am

    you are truly a just right webmaster. The site loading velocity is incredible.
    It sort of feels that you are doing any unique trick.

    In addition, The contents are masterpiece. you have done
    a excellent task on this topic!

  • good advice August 11, 2013, 11:41 am

    I don’t drop a leave a response, however after reading through a few of the remarks on this page Wordpress: How To Remove Comments Entirely from Pages. I actually do have a couple of questions for you if it’s okay.
    Could it be only me or does it look like some of these
    comments come across like they are coming from brain dead folks?
    :-P And, if you are writing at additional online sites, I’d like to keep up with you. Could you post a list of every one of all your shared pages like your linkedin profile, Facebook page or twitter feed?

  • financial resource August 12, 2013, 7:31 pm

    I was recommended this website by my cousin. I’m not sure whether this post is written by him as nobody else know such detailed about my problem. You’re incredible!
    Thanks!

  • Quality commercial pest control August 28, 2013, 8:40 am

    Thank you, I have recently been looking for
    information about this topic for a long time and yours is the best I have discovered so far.

    However, what in regards to the conclusion? Are you sure concerning the supply?

  • spyder jackets outlet September 11, 2013, 11:27 pm

    Toro Replacement Parts Available Online

  • http://ascia2011.com/ October 2, 2013, 5:37 am

    whoah this weblog is fantastic i really like studying
    your posts. Keep up the good work! You already know, lots of individuals are hunting round for this information,
    you could help them greatly.

  • cheap world cup jersey July 2, 2014, 9:29 am

    Why College Players Don’t Have Their Name On Their Basketball JerseysThis question seems to come up all the time: why can’t people buy a college basketball player’s jersey? You can buy a team jersey, for example Kentucky, but not a John Wall jersey.With March Madness right around the corner, this question carries even more weight. In brief, college players are not professional athletes; i.e. they don’t make a salary for playing basketball. And the NCAA has strict rules against monetary rewards for student athletes. It would be unethical for a company to make money off of a student athlete’s on-court success while the athlete receives no compensation.Okay, so what are your choices if you’ve got a favorite NCAA player you want to support? Well, one option is to buy a counterfeit jersey from a non-authorized website. We don’t recommend this. Your money would be going to a dishonest vendor and not the player or the school. Option number 2 is to buy the team’s jersey and get it customized with the player’s name. The schools found this loophole to let fans support their favorite players. Hey, what if my last name happens to be Wall, what prevents me from putting that on the jersey (just so happens to be the same last name as the most highly recognized college basketball player). The up side is that you’ll still be supporting your school. Note that customized jerseys can be expensive.If it were up to us, we’d recommend not doing either of these. Go out and buy the team’s jersey and support the spirit of college. Let college athletes enjoy competing for their schools and let’s leave the individuality out of the picture … at least until they join the NBA. Let’s not let the influence of money taint these student athletes’ lives.

Leave a Comment