Forums

Sidebar disappearing when reading articles, but only if unlogged (3 posts)

  1. scwhipps
    Member
    Posted 1 year ago #

    Hi there,

    I think that title fairly sums up my question...
    I'm quite new to WordPress, and I'm currently trying to adapt the TwentyTen Theme for a website.
    Everything goes well, besides I've just noticed that my sidebar disappears as soon as I visit an article.
    However, if I'm logged in, having the admin bar on the top of my browser, my sidebar is magically back.
    I don't encounter any problems of this kind on my homepage.
    I had a look to the code, and noticed that when the sidebar doesn't appear, the primary div id is basically missing.
    Is it a loop problem ?

    Any hint is welcome !

    Thanks

  2. scwhipps
    Member
    Posted 1 year ago #

    I've just read that this behaviour would be normal. However, it's not the case on my sandbox WordPress.

    Can somebody confirm ? And if it's right, how could I change this behaviour ?

  3. scwhipps
    Member
    Posted 1 year ago #

    I solved this, but I don't really know how...

    All I can say is that it seems to have somehow to deal with the order of the js scripts declarations in my header.

    wp_head(); ?> MUST BE the very last thing to stand before </head>...

Topic Closed

This topic has been closed to new replies.

About this Topic