• Resolved mattymar

    (@mattymar)


    I’m not a developer, but I’ve been playing around with the Twenty Eleven theme trying to get something I like. I put some stuff before the entries on my blog page in the index.php file but now the comment count is showing amidst that stuff and separate from the first post.

    http://healthybodyrevolution.com/blog/

    Here is the stuff I added in relation to the standard divs:

    <div id="content" role="main">
    <div id="primary">
    <center><img src="http://healthybodyrevolution.com/wp-content/uploads/2011/09/blog-head.png" /></center>
    <!--Category Images-->
    <div class="hor">
    <a href="/category/nutrition-blog"><img src="http://healthybodyrevolution.com/wp-content/uploads/2011/09/nutrition-thumb.png" alt="Nutrition" width="198" height="136" /></a>
    <a href="/category/fitness-blog"><img src="http://healthybodyrevolution.com/wp-content/uploads/2011/09/fitness-thumb.png" alt="Fitness" width="198" height="136" /></a>
    <a href="/category/wellness-blog"><img src="http://healthybodyrevolution.com/wp-content/uploads/2011/09/wellness-thumb.png" alt="Wellness" width="198" height="136" /></a>
    <a href="/category/motivation-blog"><img src="http://healthybodyrevolution.com/wp-content/uploads/2011/09/motivation-thumb.png" alt="Motivation" width="198" height="136" /></a></div>
    			<?php if ( have_posts() ) : ?>

    If I put div id=”primary” below my added images, the comment count goes with the first post, but then the sidebar shifts down. I know, I’m not doing this by the book but is there a simple solution to get the comment count to go with the first post and leave everything else where it is?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Class comments-link do not have any CSS associated with that. Try creating styles such as width, height and overflow.

    this is caused by the way you added the new section (with float left) and the formatting of the comment count bubble;

    try to add this to style.css of your child theme:

    .post{clear:both;}

    Thread Starter mattymar

    (@mattymar)

    Thank you alchymyth. I actually just got rid of the float left and that fixed the problem.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘First comment count appearing separate from post’ is closed to new replies.