Support » Fixing WordPress » How do I remove "leave a comment" for manifest theme?

  • Resolved cristin.meow

    (@cristinmeow)


    How do I remove ” leave a comment” that appears at the bottom of each post ? I am using Manifest 1.01 theme.

Viewing 13 replies - 1 through 13 (of 13 total)
    1. In your WordPress Dashboard, navigate to Settings > Discussion.
    2. Uncheck “Allow people to post comments on new articles”, under the heading “Default article settings”.
    3. Then, just to be safe, uncheck “Comment author must have a previously approved comment”, and check “Comment must be manually approved”. Just in case someone finds a way to comment.
    Thread Starter cristin.meow

    (@cristinmeow)

    Hello,
    I tried that, however it did not solve my problem. After each post, it still says “leave a comment”.

    Could you add the link of your website?

    Thread Starter cristin.meow

    (@cristinmeow)

    You may also need to go into all posts published prior to changing your general discussion settings and uncheck the “Allow comments” box on each post:

    Edit Post Test Site WordPress

    If you don’t see that area you may need to turn it on through the Screen Options tab at the top of the page:

    Edit Post Test Site WordPress 1

    Let me know how it goes.

    Hi, after looking at the problem, I’m pretty sure this is a problem with the way the home page is set up. It probably adds this after every post because that’s the way the home page post loop is set up. You probably need to edit the file that runs the home page post loop.

    Alright, I figured out how to fix this.
    If you have access to your ftp, use that. Otherwise go to Appearance > Editor.

    1. Select the index.php file to edit.
    2. On line 33, delete the code ( <?php comments_popup_link(‘leave a comment’, ‘1 comment’, ‘% comments’, ”, ‘comments closed’); ?> ).
    3. Save the file.

    Any changes to theme files should be made only in a child theme – otherwise they will be lost when the theme is updated.

    .comments {
    display: none;
    }

    Simply hiding the comments form with CSS is not recommended as it would still technically be possible for someone to submit a comment.

    Either turning off comments as I explained above or removing the comment code from from your theme files using a child theme as someone else suggested are better ways to go. Removing the comment form from your child theme means you’ll need to make the change again if you switch themes.

    Thread Starter cristin.meow

    (@cristinmeow)

    I deleted line 33 from the index.php file….it worked.

    Perfect. Make sure to remember that when you update your theme, and then re-make the edit.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Perfect. Make sure to remember that when you update your theme, and then re-make the edit.

    Dynamic? You really need to stress the “But make sure you use a child theme or the sky will fall on you!!“. 😉

    http://codex.wordpress.org/Child_Themes

    *Drinks coffee*

    Commenting out the code that way is a less than perfect solution and Kathryn pointed that out. But unless cristin.meow is using a child theme then when that theme gets updated Very Bad Things™ and that work will be lost.

    Creating and activating a child theme is the way to go. It’s easy and will protect changes like that.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘How do I remove "leave a comment" for manifest theme?’ is closed to new replies.