WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How Do I Remove The Comment ID (The numbering next to the comments) (5 posts)

  1. neospyce
    Member
    Posted 7 years ago #

    I would like to remove the numbers from the comments in my blog. Reason? I installed a plugin to reverse order my comments so that the newest comment shows first, however with them being numbered, the newest shows up at #1. I am sure that it would be confusing to visitors so I am asking for a solution to remove the numbers. BTW, I don't have a single.php in the theme that I am using, so I had to change the code in index.php versus single.php as instructed by the plugin readme.txt . It worked so now I am focusing on the number issue. Your help is greatly appreciated in advance.

  2. Chris_K
    Member
    Posted 7 years ago #

    Using the default theme as an example...

    Check your theme's comments.php file. In there, you'd see a line similar to:
    id="comment-<?php comment_ID() ?>">

    comment it out or remove it.

    If you don't have a line like that in your theme, keep looking in comments.php for comment_ID().

  3. neospyce
    Member
    Posted 7 years ago #

    Thanks. There are several instances of that code, especially nested well within other syntax. I do not know enough about php to figure out which hashmarks, etc. to delete, but I am willing to do it if you can tell me where? Here is the link to it:
    http://www.neospyce.com/comment.txt

    Thanks In Advance. Smiles.

  4. Chris_K
    Member
    Posted 7 years ago #

    For grins, change

    <ol class="commentlist">

    to an unordered list:

    <ul class="commentlist">

  5. neospyce
    Member
    Posted 7 years ago #

    What a simple and easy solution! Great! It enlarged and "bolded" my text and with the dot there to decorate, it looks "prettier". Thank you very much. Grins.

Topic Closed

This topic has been closed to new replies.

About this Topic