• SEO Optimization Techniques & WordPress Plugins Subscribe to RSS
    • Blog
    • Archives
    • Scheduled Posts
    • WordPress Plugins
    • Directory
    • List of Blog Authors
      • Spunky Jones > 
        • 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
          Related Posts:
          1. How to remove /category/ from your WordPress URL
          2. Change that awful default “read more” link to something more appealing
          3. Introducing, the Open Post plugin for WordPress
          4. Dealing with WordPress “Missed Schedule”
          5. Robots.txt for WordPress SEO
          Top Incoming Search Queries:
          1. wordpress comments are closed
          2. wordpress remove comments are closed
          3. remove comments are closed wordpress
          4. remove comments are closed. wordpress
          5. how to remove comments are closed wordpress
        • Posted on 29th December 2009 by Spunky Jones in WordPress
      • Google Custom Search
      • Navigation

        • About
        • Archives
        • Blog
        • Contact
        • Directory
        • List of Blog Authors
        • Privacy Policy
        • SEO Optimization
        • SEO Strategy
        • Upcoming Scheduled Posts
        • What are RSS Feeds?
        • WordPress Plugins
      • WordPress Plugins

        Keyword Optimizer
        SEO Top Tip
        Display Scheduled Posts
        User Resolution Logger
        Ping List Checker
        Bump the Schedule
        Sub Title Plus
        Open Post
      • Topics

      • Optimization Tools

        Canonical Duplicate Fixer
  • Copyright © Spunky Jones - SEO Optimization Techniques
    Designed by MadMouse Blog | Coded by PSD to HTML