WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] how to hide comment link (8 posts)

  1. goldmember
    Member
    Posted 4 years ago #

    in my posts, I'm electing to disable "Allow comments on this post". However when I uncheck that box, then update the post, then go to the actual post page, there's still a link at the bottom of the post that says "Comments:none".

    how do I get this link to go away? thanks!!!!!!!

  2. goldmember
    Member
    Posted 4 years ago #

    sorry, to be clear this is on the page with the summary of my most recent posts. but not when clicking on the specific posting.

    please advise. thanks!

  3. Arnold Goodway
    Member
    Posted 4 years ago #

    I am afraid that disabling comments in the back-end will not automatically remove the comment links from your site. You will have to change the code in the file index.php to remove the links (I am assuming you are speaking about the main page of your blog). In this file you will have to search for the following:

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

    To remove the link you will have to remove the entire code snippet.

  4. goldmember
    Member
    Posted 4 years ago #

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    well.....

    the first line would get rid of the time and category
    the next is the tags
    the 3rd line is the comments stuff
    the fourth line would remove the Edit Post that shows up when you are logged in

    and I wouldn't touch that last </div> unless you are removing whatever opened it

  6. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    Don't delete that p class tag unless you are deleting all that stuff tho......

  7. goldmember
    Member
    Posted 4 years ago #

    thanks. i took out the 3rd line and it worked!

  8. andyklevorn
    Member
    Posted 3 years ago #

    Dumb question, WP 2.9.2, which index file, I'm trying to do the same thing and none of the index.php files have that string in it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.