Forums

[resolved] Removing "No comments" (3 posts)

  1. dekmar
    Member
    Posted 4 years ago #

    I read the suggestion given before, but I didn't find the tag
    <p class="postmetadata">...</p>
    in index.php nor archives.php.
    Any suggestions?

  2. VelvetBlues.com
    Member
    Posted 4 years ago #

    Perhaps your theme doesn't have that class.

    Either way, simply modify the tag that looks like comments_number() or look at the documentation here: http://codex.wordpress.org/Template_Tags/comments_number
    You will have to modify the parameters.

    Alternatively, your theme might use comments_popup_link() , see: http://codex.wordpress.org/Template_Tags/comments_popup_link

    If you give me your url, I can take a look at your site and tell you where you're likely to find that code in your theme.

  3. dekmar
    Member
    Posted 4 years ago #

    Great!
    I found this on my index.php and single.php:

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

    I just removed it from both places (of course, after making a backup) and the problem was solved.

    Thanks for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.