Forums

Plugin that shows the number of comments more clearly (5 posts)

  1. rainer23
    Member
    Posted 1 year ago #

    Tried the search button but with "comments, number" it's hard to find what I'm looking for.
    Is there a plugin that displays the number of comments in the headline or somewhere better visible?
    Thanks for any suggestions!

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    these kind of modifications are usually done by editing the templates of your theme.

    link to your site?

  3. rainer23
    Member
    Posted 1 year ago #

    I'm using the well-known Twenty Ten http://wordpress.org/extend/themes/twentyten
    It displays the number of comments at the end of the byline, below the article.
    I would like it like here, where the number of comments is below the headline.
    Thanks for any suggestion!

  4. alchymyth
    The Sweeper
    Posted 1 year ago #

    edit loop.php:

    find this (about line 133; the one occurence nearest to the end):

    <div class="entry-meta">
    				<?php twentyten_posted_on(); ?>
    			</div><!-- .entry-meta -->

    change it to:

    <div class="entry-meta">
    				<?php twentyten_posted_on(); ?><span class="meta-sep"> | </span><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?>
    			</div><!-- .entry-meta -->

    (this is basically the 'comment code' copied from lower down; and a separator)

    further down - find this:

    <span class="meta-sep">|</span>
    				<?php endif; ?>
    				<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>

    change it into:

    <!--<span class="meta-sep">|</span>-->
    				<?php endif; ?>
    				<!--<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>-->

    basically commenting the un-needed code sections.

    make backup copies before editing;
    and be aware that twenty ten will be overwritten with the next upgrade. consider http://codex.wordpress.org/Child_Themes

  5. rainer23
    Member
    Posted 1 year ago #

    Thanks alchymyth, this worked great, it's exactly what I wanted!

Topic Closed

This topic has been closed to new replies.

About this Topic