WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Sidebar showing on bottom on front page only (6 posts)

  1. Robertchen
    Member
    Posted 2 years ago #

    Hi,

    For some reason, my homepage shows the sidebar on the front page only. When I click to a post, the sidebar comes back to where it should be. I have searched the forums and see that this is a common problem but haven't been able to find the source of the problem.

    I've increased the memory limit from my host/
    The "WordPress should correct invalidly nested XHTML automatically" was checked the entire time

    I'm not really sure how to go into the code as some of the other troubleshooting suggests. I don't really understand how to go about looking for <div> inconsistencies and where to start.

    The site is http://www.embracepossibility.com/blog

    Thanks!

  2. Harrison O.
    Member
    Posted 2 years ago #

    WordPress does not correct invalid XHTML automatically. You may have an open tag issue.
    Looking at the source structure of your regular posts (which is fine) it looks like this:

    <div id="pagelines_content">
       <div id="column-wrap">Left content area</div>
       <div id="sidebar-wrap">right sidebar</div>
    </div>

    On your home page:

    <div id="pagelines_content">
       <div id="column-wrap"><div id="sidebar-wrap">sidebar went inside the left content</div></div>
    </div>

    This happens because somewhere in you left content area, there might be a missing closing tag and so the column-wrap is getting the closing </div> from the sidebar, putting everything inside.

    Sometimes, the problem may be inside one of the posts. You can start open them in HTML mode to see if you can find any missing tag there.

  3. Robertchen
    Member
    Posted 2 years ago #

    Thanks Harrison. What am I looking for specifically when I go into each post?

    Can I change the source structure of my homepage?

  4. Harrison O.
    Member
    Posted 2 years ago #

    I see you just fixed. I believe you have removed the bottom part right? if that is correct then the missing </div> is probably associated with that part.

  5. Harrison O.
    Member
    Posted 2 years ago #

    Maybe I got confused with the sidebar at the bottom and I thought there was something else there. Anyway, the problem got solved and I can see the source structure is now correct and matching the single posts. Whatever you did fixed the problem.

  6. Robertchen
    Member
    Posted 2 years ago #

    Hi Harrison, I am not sure what I did. I've been trying a million things but you're right, it has been fixed. Thanks and enjoy your weekend!

Topic Closed

This topic has been closed to new replies.

About this Topic