WP sidebar is below post, can't find missing </div> tag, help me!

Discussion in 'WordPress' started by Anveto, Sep 1, 2010.

  1. #1
    When a user is not logged in the sidebar shows up below the blog post, as seen at the link below.

    http://markspixel.com/2010/09/01/woodlands-garage-door/

    I believe there must be a missing </div> tag somewhere but can anyone help me with this?

    WP 3.01
    Theme: Display 3 in 1 - Business & Portfolio from Themeforest
     
    Anveto, Sep 1, 2010 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It seems fine now. :confused:

    When I fixed a similar problem, it turned out to be a misplaced div in the comment code. Guests only got a closing div which prematurely closed a container and forced the sidebar down. Members got a different section of comment code that contained the opening div so everything was normal.
     
    Cash Nebula, Sep 4, 2010 IP
  3. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #3
    Yea, I fixed it, there was a missing div in the sidebar, but now the error shows when logged in, I have fbook connect if anyone wants to try when logged in, I am still trying to figure it out
     
    Anveto, Sep 4, 2010 IP
  4. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That makes me think it's a misplaced div rather than a missing one.

    A lot of code gets shared between themes, so maybe it has the same comments section as the theme I fixed.
    This was the code in comments.php that caused the problem:
    
    <?php endif; // If registration required and not logged in ?>
    </div>
    <div class="fix"></div>
    
    Code (markup):
    The fix was to shift the closing div and the clearing div above the ENDIF line. I'll have a look through you comments code if you PM it to me.
     
    Cash Nebula, Sep 4, 2010 IP