WordPress.org

Ready to get started?Download WordPress

Forums

Extracting my blog's comments feature (6 posts)

  1. TonyWright
    Member
    Posted 8 years ago #

    I was wondering how big a job it would be to take away the post comments feature on my blog at http://www.rapnews.co.uk so that all existing comments are deleted, the feature to make a comment is no longer offered to the viewer, and the 'comments' thing next to the front page entrys disappears.

    Thanks for your time.

  2. Chris_K
    Member
    Posted 8 years ago #

    Pretty minor change to your theme files, really, to no longer even show the option. For instance, if your theme has something like this:
    <?php comments_popup_link('No Comments »', '1 Comment', '% Comments'); ?>
    delete it...

    You can, of course, delete existing comments from your Admin area (Manage - Comments).

  3. TonyWright
    Member
    Posted 8 years ago #

    Thanks for the reply. I'm quite inexperienced in terms of deleting things and editing files.

    I'm guessing I would find the '1 comment' or 'no comments' code within the index.php

    Could you suggest where I might find the code for the post template?

  4. Chris_K
    Member
    Posted 8 years ago #

    Without knowing how your theme was built, hard to answer. I'd just search in index.php, page.php, single.php and anything else that catches your eye.

    To be clear: THEME files. in the theme's directory. Not core WP files.

  5. TonyWright
    Member
    Posted 8 years ago #

    Thanks very much. It was in my theme's index.php I've successfully deleted the 'number of posts' and 'no commnts' thing from the front page.

    Do you think I would be best to leave the option for visitors to make comments inside the posts?

    My main concern was the small number stated on the front page, which looked like my site was dead.

    Thanks for all the tips.

  6. Chris_K
    Member
    Posted 8 years ago #

    I think that's a pretty decent compromise if you're worried about showing comment count on the front page.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.