Forums

Remove Comments Link (7 posts)

  1. Imperial
    Member
    Posted 4 years ago #

    I have looked through the fourms, and have found 50 different ways to do the same thing. I am confused as hell to say the least.

    1. What file do I edit?
    2. What code can I copy and paste into that file to no longer have links to comments?

    And yes, my comments are disabled.

    Thank you very much!

  2. moshu
    Member
    Posted 4 years ago #

    1. All the files where the comment-link is present.
    2. You delete, don't add.

    Alltogether there are only 2 kinds of code lines related to comments in the template files.

    a) for displaying the comment link:
    <?php comments_popup_link('Add a comment »', '1 Comment »', '% Comments »'); ?> - or something similar; the wording might slightly differ for the display text

    b) for including the comments template:
    <?php comments_template(); // Get wp-comments.php template ?>

    That's it.

  3. Imperial
    Member
    Posted 4 years ago #

    I can delete my entire comments.php file and nothing changes. It doesnt look like the problem is in my comments.php file.

  4. moshu
    Member
    Posted 4 years ago #

    Man, you have a reading difficulty!
    Did I mention to do anything with that file?

    I said:
    1. All the files where the comment-link is present.
    Which means going through the files and search for the two strings I gave you above:
    index.php
    archive.php
    page.php
    etc.

  5. Imperial
    Member
    Posted 4 years ago #


  6. Imperial
    Member
    Posted 4 years ago #

    Did what you said. Again, nothing changed.

  7. whiteboxer
    Member
    Posted 4 years ago #

    I'm trying to remove the comments code and a weird thing happens when I do. The posts end up displaying in the footer area, even though the code looks like its ok. Here's some links to see what I'm referring to:

    post page with comments: http://www.drgbrokerage.com/?p=1

    archive page with comments removed: http://www.drgbrokerage.com/?m=200709

    the red box is the content div where the post should be. The black box is the footer. Anyone have any idea what I'm likely overlooking?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.