WordPress.org

Ready to get started?Download WordPress

Forums

remove "comments" box from pages and posts (3 posts)

  1. kleverklikk
    Member
    Posted 2 years ago #

    How do I turn off "comments" on the Spectrum theme.

    I have read other posts on how to do this and have done "settings" then "discussion" then UN-checked the "allow comments" box but the box is still there.

    Any suggestions?

    cheers
    Kleverklikk

  2. jkohlbach
    Member
    Posted 2 years ago #

    You can remove or better yet, comment out, the line in the template.

    Open pages.php and single.php in your theme and check for something similar to the following:

    comments_template('', true);

    Remove that line or to comment it add two forward slashes infront of the line and there you have it, comments gone for good.

  3. kleverklikk
    Member
    Posted 2 years ago #

    I deleted the line altogether. I tried the two forward slashes but that didn't work. Deleting the line did.

    Thank you so much.

    I wasted so much time looking for the answer, and you told me in an instant, bless you!

    cheers
    Kleverklikk

Topic Closed

This topic has been closed to new replies.

About this Topic