Forums

Sidebar Won't Align After Pagination (5 posts)

  1. JRiley21
    Member
    Posted 10 months 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 10 months 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
    Posted 10 months 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 10 months 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 10 months ago #

    Did you account for closing the following?

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

Reply

You must log in to post.

About this Topic