• Hello. I’ve just got my first blog setup using the default theme. I’ve disabled the Comments feature but I would also like to remove the comments link as well.
    I did a search but I couldn’t find the correct answer.
    Hope someone can help.

    PS: PHP newbie!! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • If this WP 1.2 then look into your index.php file and remove the call to <? php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ? >

    Regards

    You will need to edit index.php, search.php and archive.php. Look in each for the line with:

    <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »') ?>

    Delete it. (Make a backup first, of course, I’ve not had but one cup of coffee.) Save. View in browser. Make further adjustments as desired.

    In single.php, you will probably want to remove this line:

    You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.

    Alternatively, you could also delete everything between:

    <p class="postmetadata alt">

    and

    </p>

    (lines 20 through 50), and (optionally) line 55:

    <?php comments_template(); ?>

    Thread Starter notverypc

    (@notverypc)

    I’m using WP 1.5

    Thanks for the reply I’ll have a look tommorow. Hopefully this will sort it!!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Removing Comments Links.’ is closed to new replies.