• So as you see on my site: https://iphonecustoms.com, my sidebar is pushed down on every page except the front page.

    What happened was… my comments weren’t working. My theme had a default “leave a comment” at the end of every page put that link was not working. (It worked only at the end of every post on my front page.)So i fixed this by replacing:

    <p class=”comments”><?php comments_popup_link(‘Leave a Comment’, ‘Comments (1)’, ‘Comments (%)’); ?></p>

    on my page.php with:

    <div class=”comment”>
    <?php comments_template(); ?>

    which totally changed what the comments looked like.. but at least it works now.. HOWEVER my sidebar got smushed down! Help! What do I do?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you close your <div> tag?

    <div class="comment">
    <?php comments_template(); ?>
    </div>
    Thread Starter daniellejosh

    (@daniellejosh)

    yes..

    <div class=”post”>
    <h2 class=”postTitle”>“><?php the_title(); ?></h2>
    <div class=”postContent”><?php the_content(‘[Read the rest of this entry…]’); ?></div>
    <div class=”comment”>
    <?php comments_template(); ?>
    </div> <!– Closes Post –>

    The solution is to place the comment div below the post div. This will fix your alignment issues.

    This is how my page.php looks like:

    <div class="post">
    <h2 class="postTitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
    <div class="postContent"><?php the_content('[Read the rest of this entry...]'); ?></div>
    </div> <!-- Closes Post -->
    
    <div class="comment">
    <?php comments_template(); ?>
    </div> <!-- Closes Comments -->
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘My sidebar is pushed down! Can’t get it back up’ is closed to new replies.