WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Get rid of Comments (17 posts)

  1. Tamas
    Member
    Posted 7 years ago #

    I have been trying for a few days with no success to remove comments from my site (even the "No Comments")

    I dont't want to use comments for most of the posts now, and I would prefer seing nothing at the bottom.

    I have read the documentation found here, looked at previous posts, tried "smart comments" plugin, played forhours with the different files, so far nothing worked. All the previous posts have the annoying "no Comment" at the end. Can anyone help in resolving this?

    Similar issue: How can I edit the "Posted in..." message. Tried this in index.php - did not work either.

    Thank you very much!

  2. spencerp
    Member
    Posted 7 years ago #

    This thread might help.. Umm, some of threads in this search result might help too. Good luck!

    Similar issue: How can I edit the "Posted in..." message. Tried this in index.php - did not work either.

    A link to the blog might help.. ;) I'm not sure what theme you're using and such, might help us to have a URL to the blog in question? =)

    spencerp

  3. Tamas
    Member
    Posted 7 years ago #

    Thank you very much! I have read the suggested solutions before I posted this problem - tried them - no success...

    I use the Kubrick (default) theme.

    My blog is at: http://www.palyazatihirek.eu

    All I would like to do is to make the "comments off" and the Posted in...." disappear...

    Thank you for any further suggestions! Tamas

  4. epadgett
    Member
    Posted 7 years ago #

    I found this code in my index.php file under my current theme (wp-content\themes\themename\index.php):

    <p class="postmetadata">Posted in
    <?php the_category(', ') ?>
    |
    <?php edit_post_link('Edit', '', ' | '); ?>
    <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
    </p>

    If I comment that code out like this:

    <!-- <p class="postmetadata">Posted in
    <?php the_category(', ') ?>
    |
    <?php edit_post_link('Edit', '', ' | '); ?>
    <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
    </p> -->

    I no longer get Posted by, edit, or comments text at the bottom of my posts. Hope that helps

  5. Tamas
    Member
    Posted 7 years ago #

    Thank you!

    this seems hopeless... it does not work. I deleted the whole section in index.php as

    <!-- <p class="postmetadata">Posted in
    <?php the_category(', ') ?>
    |
    <?php edit_post_link('Edit', '', ' | '); ?>
    <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
    -->

    But it still appears: "Posted in.." and "Comments off"

    Does anyone have any further idea? Please... :)

  6. spencerp
    Member
    Posted 7 years ago #

    Are you sure you're editing the RIGHT theme there boss? Can you paste your THEME file here: http://wordpress.pastebin.ca and post the link to it, back here please? Choose PHP as the Content Type..

    Please note: Do this for BOTH, the INDEX.PHP and SINGLE.PHP most likely..

    spencerp

  7. TechGnome
    Moderator
    Posted 7 years ago #

    Unless things have changed.... you need to be editing the single.php.... editing the index.php will only take care of the front page. To modify the page where the posts are, edit the single.php.

  8. spencerp
    Member
    Posted 7 years ago #

    OMFG! TG posted here!! ;) =) Thank god! *Cough* "We" thought you were dead or something lol! =P Nah, just kidding.. =P Um, yeah..like TechGnome said, the SINGLE.PHP file should be the one edited.. ;)

    spencerp

  9. Tamas
    Member
    Posted 7 years ago #

    Thank you!

    http://wordpress.pastebin.ca/208009 - index.php of default theme (kubrick)

    http://wordpress.pastebin.ca/208012 - single.php

    Can you please suggest what to modify?

  10. Tamas
    Member
    Posted 7 years ago #

    I managed to throw out "comments off". I had to delete it in the wp-includes/comment-functions.php.

    That part is OK.

    I cannot get rid of "posted in: categoryname". I even deleted the index.php in my default theme library... The pages are still running with the Posted in messages. How is that pssible? After hours of search again, no clue...

  11. Tamas
    Member
    Posted 7 years ago #

    Finally it works. Sorry... I did not refresh from the server... My misery is solved now :) Thanks for all the help!

    Best,

    Tamás

  12. Tamas
    Member
    Posted 7 years ago #

    NO - it does not. On the front page it was ok, but not on the rest. I tried single.php - I cannot do it again... even with refreshing from the server like a madman.

  13. Tamas
    Member
    Posted 7 years ago #

    Resolved: Single.php did not matter. I had to modify archive.php at <p class="postmetadata"> in the theme library.

  14. spencerp
    Member
    Posted 7 years ago #

    Sorry I wasn't around earlier... was offline taking care of "home life" business.. Umm, glad to see you fixed it yourself though.. nice work! ;) =)

    spencerp

  15. aaylnx
    Member
    Posted 7 years ago #

    I'm having trouble using the methods listed in this post to get rid of "comments off." In WP 2.1 there is no wp-includes/comment-functions.php only comment.php, comment-template.php, and functions.php. I can't find anything about "comments off" in any of these files. I've also tried various edits of index.php and I can't seem to get rid of the "comments off". Does anyone know how to do this in WP 2.1?

    Thanks,

    Adam

  16. lookingforhelp
    Member
    Posted 6 years ago #

    I'm having the same problem at aaylnx

  17. moshu
    Member
    Posted 6 years ago #

    And what exactly that would be?
    He/she was completely on the wrong track... so unless you want to go that way - start your topic and state clearly what "your problem" is.
    Obviously, you can never have the same problem as a 4 months old topic - since then several new versions has been released.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags