• WordPress SEO Optimization Techniques Subscribe to RSS
    • Blog
    • Archives
    • Directory
    • WordPress SEO
    • WordPress Themes
      • Blog > WordPress > How to Remove, “Comments are Closed” Message in WordPress
        • How to Remove, “Comments are Closed” Message in WordPress

        • - Get rid of that annoying default WP message when you don't allow comments -

        • comments-are-closedThere are WordPress blogs out there that have comments disabled on all posts except a few selected ones where visitors can post comments to. These selected posts which have comments enabled are either open to comments for an indefinite period of time or for a specified number of days after which they are closed. WordPress by default shows the message 'Comments are closed.' even on posts which were never open for comments. This behavior might not be liked, however, users can choose to disable this message and make it appear only on posts which were once or still are open to comments. The procedure outlined below assumes that the structure of the comments.php file is based on the file found inside the default WordPress theme.

          Following are the steps that are required to make the modification:

          • Go to your theme's folder (located under /wp-content/themes/) and make a backup of the comments.php file
          • Open the comments.php file for editing
          • Locate the following lines of code and remove them:

          <?php if ('closed' == $post->comment_status) : ?>
          <p>Comments are closed.</p>
          <?php endif; ?>

          • Find the following lines of code:

          <?php else : // comments are closed ?>
          <!-- If comments are closed. -->

          • Right after those lines, add the following line of code:

          <p>Comments are closed.</p>

          • Save and close the file.

          You are done...

          Hope this blog post was helpful to you, "How to Remove, "Comments are Closed" Message in WordPress"

          Spunky Jones.

          If You Enjoyed, Please Share:
          • Digg
          • del.icio.us
          • StumbleUpon
          • Technorati
          • NewsVine
          • Reddit
          • Twitter
          • Facebook
          Related Posts:
          1. How to Remove the WordPress Generator
          2. How to remove /category/ from your WordPress URL
          3. Change that awful default “read more” link to something more appealing
          4. Introducing, the Open Post plugin for WordPress
          5. Dealing with WordPress “Missed Schedule”
          6. Magic Show – Free WordPress theme
          7. Golden Harvest Classic WordPress Theme
          8. Robots.txt for WordPress SEO
          9. Removing the “private” and “protected” from your post title
          10. Sub Title Plus Plugin for WordPress
          Top Incoming Search Queries:
        • Posted on 29th December 2009 by Spunky Jones in WordPress
      • Google Custom Search
      • Navigation

        • About
        • Blog Archives
        • Contact
        • List of Blog Authors
        • Privacy Policy
        • Upcoming Scheduled Posts
        • WordPress SEO
      • Popular Posts

        • Adjusting Your Monitor's Brightness...
        • Protecting Your Email Address from Bots...
        • Dealing with WordPress "Missed Schedule"
        • How to get that new site indexed fast...
        • How to Remove, "Comments are Closed"...
        • Optimizing Page Text
        • WordPress Brute Force Attack, Prevention
        • What can I do to get more traffic to my...
        • Bump the Schedule Plugin for WordPress
        • The Future of Search Engine...
      • Category Topics

        • Blogging
        • Business World
        • Making Money Online
        • Ramblings
        • SEO
        • Social Networking
        • Technology
        • Web Directories
        • Webmaster World
        • WordPress
      • Spunky has Faster Loading Speeds

        Many of you are noticing faster loading speeds on Spunky Jones. This is due to a little tweaking and changing over to Gotekky for my web hosting provider.
      • WordPress Plugins

      • Directory Submissions

        Madmouse Web Directory - US
        Deep Link Listing Directory
        Madmouse Link Directory - India
      • Free SEO Tools

        • Canonical Duplicate Fixer
        • META Language Tag Generator
  • Copyright © 2008 - 2010 Spunky Jones: WordPress SEO Optimization Techniques
    Designed by: Spunky Jones | Coded by: PSD to HTML