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.
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.
Sorry what is the exact problem. Normally
<?php get_sidebar() ?>is directly above
<?php get_footer() ?>
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?
This has an easy fix.
In the single.php change
<div id="content" class="widecolumn">
<div id="content" class="narrowcolumn">
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(); ?>
<?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].
thanks to phippster12 and mpanty ! i have the same problem but now it’s ok..
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.
- The topic ‘Showing Sidebar on individual articles’ is closed to new replies.