• I’m using a child theme of Twenty Eleven. How do I display the number of comments on the same line as each entry title? I’ve done this before, but I can’t find the code.

    The unmodified theme has a cloud bubble for comments to the right of the entry titles. But I’m not finding the code in the original files.

    Because of a splash page I’m using to protect my blog pre-launch, I’m unable to provide a link, but I know this isn’t difficult to do.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Big Moose

    (@big-moose)

    This is crazy. Just for fun I put the code for displaying my comments count above the start of the entry-header class, and guess what? My comments link now displays inline with my post titles.

    But why? This isn’t clean code, right? When I first downloaded Twenty Eleven, I removed the comment bubble and placed the comments link at the bottom of my posts. But I want it back next to the post title.

    Ugh. Please … can someone help me understand this? Here’s the content.php code:

    [a rather large chunk of code moderated – the forum limit for posting code is 10 lines; for more, use the pastebin]

    If you ‘want it back’ download the theme to your computer and replace that file only. Or if you haven’t done other changes delete and reinstall the theme.

    Thread Starter Big Moose

    (@big-moose)

    I have the original files, but I have made lots of changes to the child version of content.php. Also, I believe functions.php might have something to do with this. So I don’t feel that’s an option.

    This should be able to be addressed with some simple CSS and div wraps or span tags. But I’ve tried everything I can think of and really welcome input on how to best accomplish this.

    Thanks.

    A good idea to start using child themes.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display Comment Count – Next to Entry Title’ is closed to new replies.