WordPress.org

Ready to get started?Download WordPress

Forums

How to remove the comment number. (6 posts)

  1. cademortem
    Member
    Posted 4 years ago #

    Is it possible to remove the comment number in a theme? And if yes... How?

    I used this tutorial to make a theme http://themeshaper.com/wordpress-themes-templates-tutorial/. By default this theme views comment numbers and I can't find where that's explained in the PHP-code.

    Sorry for my bad English. I'm from the Netherlands.

    Thanks already.

  2. Peter Boosten
    Member
    Posted 4 years ago #

    Without wanting to search the entire tutorial (an URL to your site would be easier), I think you mean this one in functions.php

    '#comment-' . get_comment_ID() );

    Just remove that.

    Peter

  3. cademortem
    Member
    Posted 4 years ago #

    Thank you very much!

  4. jhalton
    Member
    Posted 4 years ago #

    I'm having the same problem, but I don't have anything related to comments in my functions.php file......

    Here is a sample: http://jacobhalton.com/ics/fuji/

    That's the only comment on the site because nobody cares about the site yet, but it still has a number "1" that I can't figure out how to remove.

    Feel free to leave a reply on there to raise my comment numbers btw ;)

  5. cademortem
    Member
    Posted 4 years ago #

    Hi J.Halton,

    I had the same problem too. But after some trial and error I managed to solve it. The comment-numbers have a class in css. The class is called "ol". If you want to remove the comment-numbers you have to paste this in your style.css:

    ol {
    	list-style-type:none;
    	margin: 0;
    }
  6. jhalton
    Member
    Posted 4 years ago #

    awesome, that makes sense, I didn't think of that. Thanks I'll let you know if it works

Topic Closed

This topic has been closed to new replies.

About this Topic