• How do you remove the “Comments are closed” text?

    I would also like to remove the “Last Modified” text if possible.

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you were using the WordPress Default theme you would remove the reference to the comments_popup_link in the wp-content/themes/default/index.php. In other words, delete this code:

    <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>

    It is likely the “Last Modified” and the_time or the_date would need to be deleted from your index.php file.

    Resources:
    Stepping Into Templates
    Template Hierarchy
    Stepping Into Template Tags

    Go into your theme’s directory and open up comments.php. Inside of that file do a search for Comments are closed and just erase that.

    If your comments.php file is unchanged the code that you are wanting to remove will look like

    <p class="nocomments">Comments are closed.</p>

    That line of code is located on line 59.

    Just remove that code and nothing else. Leave all the other code around it alone because if you mess with that it will more then likely screw up your whole theme and throw an error.

    Maybe someone can help me here?!

    If you referenece http://www.imontvbitch.com page BLAH BLAH, I’m trying to remove comments from certain static pages that don’t have posts. However I don’t want to delete the code from appearing on all static pages.

    And when I say remove I mean keep the dotted line, “No comments” text, image line, and “Sorry the comments form is closed at this time” text from appearing. The 4 items that are thrown at the bottom.

    Any ideas??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove “Comments” text’ is closed to new replies.