Adding comment bubbles to Twenty Eleven single post pages (4 posts)

  1. janefriedman
    Posted 4 years ago #

    I'm using Twenty Eleven 1.3 along with a child theme for customizations to the CSS.

    I'm trying to figure out how to add the comment bubble to single post pages. The comment bubble appears everywhere else *except* on single post pages.

    For example, here it appears:

    Here it does not appear:

    I believe making the comment bubble appear involves adding comments-link but I'm not sure exactly where/which file, and if that's all that's needed?

    Thanks so much,

  2. Michael
    Forum Moderator
    Posted 4 years ago #

    try to locate the code in content.php and copy it into content-single.php (untested)

  3. janefriedman
    Posted 4 years ago #

    That worked!

    I picked up this code and placed it in the entry-header before entry-content

    <?php if ( comments_open() && ! post_password_required() ) : ?>
    			<div class="comments-link">
    				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
    			<?php endif; ?>
  4. theonetruebix
    Posted 4 years ago #

    Okay, that's weird. Because if I do exactly that -- copy that code from content into content-single, at exactly that location in the HTML, it renders the bubble way the hell above not only entry-content, but way above entry-header as well. (I can't link the example at the moment because the site is behind a "coming soon" barrier.)

Topic Closed

This topic has been closed to new replies.

About this Topic