WordPress.org

Ready to get started?Download WordPress

Forums

Sidebar Won't Align After Pagination (5 posts)

  1. JRiley21
    Member
    Posted 2 years ago #

    Hi All. :)

    I'm having an issue that I can best explain with a couple of examples:

    (1) Here's my home page: Home. Everything lines up correctly.

    (2) Here's Page 2 of my home page (after pagination): Page 2.

    I can't, for the life of me, figure out why the sidebar is aligning within that 'news' DIV.

    Any help would be greatly appreciated. Thanks! :)

  2. gerbilk
    Member
    Posted 2 years ago #

    if you take a look with firebug your sidebar div is inside your news div, probably a missed closing div. If you label all of your closing divs with <!--#div name--> you should be able to track it down.

  3. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    this code seems to be extra in 'page 2'

    <div id="news">
    <div style="width: 650px; margin-top: 10px;">

    must could have escaped the conditional area for the slideshow on the front page.

    if you have trouble locating the problem, you could paste the full code of the frontpage template into a http://pastebin.com/ and post the link to it here.

  4. JRiley21
    Member
    Posted 2 years ago #

    Thanks for the replies, I appreciate it. I went ahead with alchymth's suggestion and pasted my home.php code here.

    I went through and closed my DIV tags, but it actually complicated the problem and forced the sidebar down the page. Clearly, there's something bigger I'm missing.

    I appreciate everyone's help!

  5. gerbilk
    Member
    Posted 2 years ago #

    Did you account for closing the following?

    <?php
      if(  get_query_var('paged') >= 2){
    echo "<div id='news'>";
    }
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic