• 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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    Thread Starter Imperial

    (@imperial)

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

    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.

    Thread Starter Imperial

    (@imperial)

    Thread Starter Imperial

    (@imperial)

    Did what you said. Again, nothing changed.

    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: https://www.drgbrokerage.com/?p=1

    archive page with comments removed: https://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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove Comments Link’ is closed to new replies.