• My sidebar disappears whenever I make any change to the sidebar.php file. I’ve been very careful in trying to isolate the problem and I’ve determined that it’s not any piece of code in particular–it’s the simple fact of having changed the file. This is happening in several browsers and with several themes. I have been trying for hours to get this to work, and my brain is tired. What am I missing? I have another WordPress blog on the same server that I have no problems with. The URL of the problem blog is http://www.geertzian.org/blog2. Thank you so much to anyone who can help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I just rank your site through the W3C XHTMl validator and I noticed that you have a noticable amount of XHTML errors on your index page, some of which are unclosed </div> elements which can lead to your sidebar not appearing correctly (or at all).

    Another thing would be to check if the sidebar.php is being called in your index.php, I couldn’t find any reference to the sidebar in your index’s source code.

    Thread Starter seaj11

    (@seaj11)

    I ran it through before and after restoring the fresh theme file (I thought I’d done that before posting my q, oops), and only found one unclosed <div>, which was because the sidebar was lopped off. If you were looking at the source code for the page after it had been loaded, then no, no reference to the sidebar would have appeared because the theme’s index.php tried to call it and it failed. Therefore, no call and no id tag would have appeared in the source. So, I’m not sure what you mean.

    On edit: I forgot to mention: this problem was present before and after I upgraded from 1.5 to 2.

    I am also having sidebar problems (didn’t have any until now, though, and I haven’t modified any coding in weeks).

    My sidebar has completely disappeared, right after I made my 55th post.

    Can anyone help me get it back on the page? (My HTML and PHP skills are not at a high level, so you might need to dumb down the jargon a bit.)

    Here is the URL:
    http://mikecade.com/blog1

    Thanks in advance to any who offer help.

    Addendum

    Further confusion: I tried changing templates to see if that would make a difference, but the sidebar is absent in templates that I didn’t even change the coding in.

    Thread Starter seaj11

    (@seaj11)

    Try not to merge two cases into one thread, even if the topic is the same or similar. It’s better to keep help requests separate. Anyway, looks like you’ve got your sidebar back now. Glad it worked out for you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘sidebar disappears after modification’ is closed to new replies.