• Resolved lucid_design

    (@lucid_design)


    This is my first WordPress project for a client. I’m minimally proficient in coding.

    Here’s the problem: the sidebar is appearing properly on the right side on all pages except those posts I access through the sidebar Category menu. When I call up a single post from that sidebar menu, the sidebar itself displays underneath the central text area where the post appears.

    You’ll see that here:

    https://albereo.com/home/earth%e2%80%99s-economy

    If you look at the home page, there’s no problem:

    https://albereo.com/home

    About 5 months ago someone reported a similar problem and the consensus was it was probably caused by an unclosed div tag. I don’t know how or where to look for this problem, if in fact that’s what’s going on.

    Would really appreciate your help.

Viewing 10 replies - 1 through 10 (of 10 total)
  • It could be a number of problems.

    First, you’ve forgotten to close an img tag on line 128 of your page source. It’s the img tag for: https://www.albereo.com/img/sm_double_stars.jpg. Close that tag, see if it fixes it.

    Next, validate your site (skip to part 2 if part 1 is below your skill level).

    If that still doesn’t fix it, play around with your content and sidebar widths to see if that works.

    And if it’s still not fixed, I’m out of ideas. ??

    Re: finding an unclosed div tag.

    You open your applicable theme files (index.php, sidebar.php, etc.), and start searching through it for unclosed <div> tags. You can use the find function or however you see fit.

    Thread Starter lucid_design

    (@lucid_design)

    I did find an unclosed div tag in the footer and removed it. I also removed a widget with the image you mentioned with the unclosed img tag. The page now passes validation, but the problem isn’t resolved.

    What would you do at this point?

    It seems to be happening on all your posts when you view them in single view…click on the title to view them. So, I would look at the template that produces that view…probably single.php in your theme.

    Thread Starter lucid_design

    (@lucid_design)

    I’ve uploaded all the original php files in my theme. The single.php, which I suspected too, has no unclosed div tags.

    I can see in my page source code the orphaned </div> tag. It’s at the very bottom under the footer and right above the </body> tag. I’ll paste it in below. Does this help in any way identify where that div tag is?

    Thanks everyone for your time with this.

    <div id=”footer”>
    Copyright © 2008 · Subscribe RSS Feed now
    Powered by WordPress · Gray Lines Theme by Zack
    </div>
    <div class=”cle”></div>
    </div>
    </body>
    </html>

    Thread Starter lucid_design

    (@lucid_design)

    This is not a theme issue. I just changed to the default theme and there is still the same problem on individual post pages. In fact on those pages, the sidebar doesn’t show up at all.

    In validation, one of these problem pages shows 2 errors:

    Error Line 58, Column 10: ID “attachment_65” already defined

    Error Line 100, Column 95: Attribute “aria-required” is not a valid attribute

    Thread Starter lucid_design

    (@lucid_design)

    Could pictures embedded in a post that are sized too wide be causing this?

    Potentially, yes. I had my sidebar wrap below my content section one time when a widget I was using was sized too large.

    It’s worth a shot temporarily removing those pics to see if that remedies the problem.

    You have an unpaired closing div tag in your theme or text widgets that you need to track down.

    Thread Starter lucid_design

    (@lucid_design)

    The problem has been solved. The second nav link was outside the container div in the single.php file. I think this problem only affects the black-n-white Theme.

    Big thanks to Nicolas91, who was a big help and has a great site at freesoftwareworkshop {dot} com

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Why is my sidebar underneath my post? I’m on a deadline for a client’ is closed to new replies.