Forums

[resolved] Where's sidebar for single post pages gone? (5 posts)

  1. RMEA
    Member
    Posted 3 years ago #

    Hello,

    I just started using WP this week, and am amazed that I have it looking just how I want for now, except there is no sidebar on the single posts page. It's there for all the others, and I want it exactly the same (I've added widgets and stuff). I'm using the default theme.

    I'm sure it's something simple but am stumped! I've been looking through the forums but can't find anything as simple as this.

    Please help!

  2. Hazlitt
    Member
    Posted 3 years ago #

    Hi, post the single.php code in a pastebin and copy the link here so that the code can be reviewed. Also, include a link to a live single posting.

  3. Ad Lagendijk
    Member
    Posted 3 years ago #

    You say it is gone, which seems like it was there.
    I think the problem is the following:
    in theme file single.php there is a <div> declaration for the post:
    <div id="content" class="widecolumn">
    If you want room for a sidebar you have to change this into narrowcolumn
    and add <?php get_sidebar(); ?> somewhere (a good place is just
    before <?php get_footer(); ?>

  4. RMEA
    Member
    Posted 3 years ago #

    Thanks for the replies. Here's a link to the single post. You've lost me on the pastebin thing though. I learn fast but did only just start doing this!

    http://mangrovebelize.com/blog/?p=40

    I'm actually not sure if the sidebar was there before or not?!! Before I try changing the code...If I mess up the code, how can I get it to revert again, without losing all my edits?

    Also do you mean, literally change
    <div id="content" class="widecolumn">
    to <div id="content" class=narrowcolumn"> ???

    And another question...if I add the 'get sidebar' will it be exactly the same as the one on the other pages?

    Thanks for all your help!

  5. RMEA
    Member
    Posted 3 years ago #

    I did it! Actually it was easy following your instructions adlag! Thanks so much. It's weird that the archives page doesn't have that code, it says widecolomn, but the sidebar is still there.

    Anyway, I'm happy!

Topic Closed

This topic has been closed to new replies.

About this Topic