• Hi guys,

    I have a problem where on some of my posts the sidebar drops to below the content. It’s obviously down to a div that hasn’t been closed or something simple. But wherever I put it it fixes the problem as I expected but it seems to break other pages in the process…

    I am using the Internet Music theme available at http://ericulous.com/2007/01/19/wp-theme-internet-music/ . I have disabled all dynamic widgets and necessary plugins and also reinstalled the theme from scratch but still get the issue. And the guy that converted the theme to WP seems to have gone quiet.

    Now, just above the get_sidebar() and get_footer() code in single.php of my template I added a closing div which fixed the issue. But that then made the issue appear in other pages. So I undid it. I tried the same with page.php which fixed some page but not others so I had to undo that because I use a PAGE as my home page and that broke too. Editing both also doesn’t work.

    So I’m thinking there may be a loop somewhere that adds a div to some pages and not others which would make sense until I saw two posts – one fixed and one broken. Both were straightforward text, no fancy div styling or anything.

    Looking at the two different posts using firebug, the body tag contains single single-post postid-xxx, with xxx being the post id. The two posts contain the same body tag code, with the exception of the post id, yet one contains an extra div to the other, one being broken and the other being fine.

    I’m so lost with this I can’t figure out how to fix it without breaking other pages. Has anyone seen this issue before with other themes and know how to fix it?

    EDIT: It’s probably also worth mentioning that the issue doesn’t exist if you are logged in :s

Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Custom theme breaks sidebar on some posts but not others’ is closed to new replies.