WordPress plugin: Remove “Comments are closed”

On posts where comments are closed, the plugin will remove the text ‘Comments are closed.’ The plugin supports any languages/text domains, and will remove the text from themes and plugins.

Prerequisite: Since the plugin is filtering gettext, your theme/plugin must be localized.

The plugin is available in the WordPress plugin directory


Plugin source code:

Changelog:

  • 1.2 removed unnecessary code
  • 1.1 initial public release

24 thoughts on “WordPress plugin: Remove “Comments are closed”

        1. PerS Post author

          My plugin, using gettext, search for the exact string ‘Comments are closed.’ (including the period), this is the standard text used by WordPress. I suggest that you remove the period from the string in my plugin (line 15 above).

          Reply
  1. Alex

    If I want my WP theme to be only English do i need to localize to? I am a very beginner and the article you are referring for localization is too difficult to implement. I just want to remove comments are closed without touching any code. why can;t i do it? thank you.

    Reply
    1. PerS Post author

      Hi Alex,

      No you don’t have to localize it yourself, but you must choose a theme that has localization code. If the text in the theme is wrapped in __() or _e() functions, you are fine.

      If you give me the url to where you found the theme, I can check this for you.

      Btw, the default themes, Twenty Ten an Twenty Eleven, has localization code.

      Reply
  2. Joe

    I installed, it, on newest version of WP, it appears it set my site to use a static home page, then I tried to de activate it, and it seems on de activation, it does not revert everything it did?

    Reply
    1. PerS Post author

      It doesn’t do anything to wordpress db etc, so turning it off will remove it.

      What’s the theme you’re running ? Are you running any caching plugins ? Any other new plugins added lately?

      Reply
  3. Joe

    Hi. I tried it with the mainstream (woo themes) theme and it did not work.
    No no other plugins, no caching plugins. Yours is the only one activated.
    So I take it, when you de activate it, it does not revert the changes it made? Tks

    Reply
    1. PerS Post author

      Most of the themes have their “internal plugins” aka THEMEFOLDER/functions.php, so for me to be able to see if there’s a conflict, I need to know which woo theme you’re using.

      The plugin (see code above) only filters gettext, the only reason that it doesn’t revert when you switch the plugin off is that your wordpress / theme is caching the output.

      Reply
    1. PerS Post author

      You can change the text using the plugin editor (/wp-admin/plugin-editor.php?file=remove-comments-are-closed/ps_remove_comments_are_closed.php)

      Reply
    2. PerS Post author

      ..or, instead of using my plugin, you can add the following to the (child ) theme functions.php:

      Reply
    1. PerS Post author

      “not working for me” .. what’s not working ? If the text in monster’s template is different than the default; instead of using the plugin, add the routine to your (child) theme functions.php as described above

      Reply
  4. lishai

    Thank you for the reply but I’m not a programmer and I thought this plugin will do the work without getting into the code. “Not working” as this plugin does not remove the comments text. Can you assist?

    Reply
    1. PerS Post author

      There is no reason why this simple plugin will destroy anything. Read the code and you’ll see that I’m right.

      Reply
  5. Kathleen Moore

    Hello. I’m using WordPress 3.8.2, just uploaded my draft site and installed your plugin to “remove comments closed”. My themes are made in Artisteer. I wonder if Artisteer or 3.8.2 is not compatible with your plugin, as the link has not disappeared.

    Thank you.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">