Showing Sidebar on individual articles (11 posts)

  1. macsoft3
    Posted 8 years ago #

    Hello. I would like to know if I can display the sidebar on individual articles. Our website is located at http://machouse.mhouse-j.com (or machouse.mhvt.net). We are using the default theme. And the WP version is 2.1.3.

    I've read threads posted under the subject title "Sidebar does not show up when you click on a Topic," which is located at /topic/79943?replies=7. I don't have single.php, so I don't know where to place <?php get_sidebar(); ?> on which file.

    Thank you very much for your help.

    Tom Bluewater

  2. macsoft3
    Posted 8 years ago #

    Oops. I'm sorry. I do have single.php.

  3. macsoft3
    Posted 8 years ago #

    If I insert <?php get_sidebar(); ?>, the side bar will appear on individual pages. But depending on where I insert it inside single.php, the sidebar can appear before the header, before the footer... And it won't appear right next to the body of the article.

    I'm clueless. I would appreciate any idea. Thank you.

  4. macsoft3
    Posted 8 years ago #

    Anyone? Please...

  5. maelgwn
    Posted 8 years ago #

    Sorry what is the exact problem. Normally <?php get_sidebar() ?> is directly above <?php get_footer() ?>

  6. macsoft3
    Posted 8 years ago #

    Thanks for writing a reply, maelgwn. Anywhere I place <?php get_sidebar(); ?>, the sidebar doesn't appear at the right location. If I place it right above or below <?php get_footer() ?>, the sidebar appears appears between the header and an individual article. Does that mean the article area is too wide?

  7. phippster12
    Posted 8 years ago #

    This has an easy fix.

    In the single.php change

    <div id="content" class="widecolumn">


    <div id="content" class="narrowcolumn">

  8. mpanty
    Posted 8 years ago #

    Thanks phippster!! I had the same problem, and your suggestion fixed it nicely for me.

    For my part, I opened single.php of my current theme, and inserted

    <?php get_sidebar(); ?>

    just before

    <?php get_footer(); ?>

    (essentially that's the same lay-out as it is in the index.php file)

    Then I modified widecolumn to narrowcolum as suggested by phippster12 and voilĂ . :)

    I'm guessing that since macsoft didn't reply anymore, the tweak solved her problem as well... this topic should be marked [resolved].

  9. kfiasche
    Posted 8 years ago #

    thanks to phippster12 and mpanty ! i have the same problem but now it's ok..

  10. ImageGag
    Posted 8 years ago #

    Awesome, thanks for the help. I'd just like to clarify for some other extreme newbie like me who may be reading this.

    You will be doing this in your admin area, under Presentation, Theme Editor:

    Click on 'Single Post' Then do what phippster12 and mpanty says above.

    Sorry if that's obvious to most, but for people like me, nothing is obvious with this stuff. Thanks again for your help.

  11. dickdoang
    Posted 7 years ago #

    Thank's everyone...

    I had the same promblem too, finaly I found the great tips here. Just follow what they say, its realy work.

Topic Closed

This topic has been closed to new replies.

About this Topic