Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3239552
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:59:01+00:00 2026-05-17T17:59:01+00:00

i have closed comments in a page still the below lines are displayed in

  • 0

i have closed comments in a page still the below lines are displayed in the page .How can i disable these lines . someone please help me !

Posted on October 12, 2010 by sankar
Comments Off | Edit
Comments are closed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T17:59:01+00:00Added an answer on May 17, 2026 at 5:59 pm

    What version of WP are you using?

    In WP 3+ (and maybe earlier) you just go to the Dashboard, click Pages, click Edit for the page in question, scroll down to the section labeled Discussion, and deselect the Allow comments & Allow trackbacks & pingbacks boxes. Then trash any comments attached to the Page.

    If you actually meant Post rather than Page, then Paul is correct in that a minor edit to the theme will be necessary. NOTE: whenever possible, do this with a Child Theme so you don’t accidentally hammer the main theme.

    Assuming you are using WP 3 and the default Twenty Ten theme, edit wp-content/themes/twentyten/comments.php (or create a child theme, copy comments.php, and then continue).

    comments.php, line 70, reads:

    if ( ! comments_open() ) :
    

    Change it to read:

    if ( 0 && ! comments_open() ) :
    

    That effectively kills the line after it which is where “Comments are closed” is output, but without just deleting it completely. Obviously, if you are using a different theme you’ll have to hunt down the appropriate line in comments.php for yourself.

    Note that this is a quick-and-dirty hack which will affect all posts. You’ll have to do something a little more involved if you only want to do this for selected posts.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Do you have a favorite site or homegrown page in your toolbox to help
I have a delete button that is tied to some comments on a page
I have a site at blog.foobar.com that I have closed down, and I want
I have a custom closed-hashset/open-addressing (i.e. no linked lists) class. It's very specific to
I have a form that is closed unexpectedly immediately after showing it. I hooked
I have a field with enums: 'preview','active','closed' When I query like this: $query =
Closed as exact duplicate of this question . I have an array/list of elements.
Let's assume you have a cursor at a closed fold as in the picture.
I have a set of points that i want to turn into a closed
I have an MFC application, which i don't want to be closed during the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.