How to Add Sidebar to the WordPress page or Single post

Written on December 18, 2008 – 3:21 am | by Eric Marantan

In editing your templates for your wordpress blog, every pages and single posts are very important to your business and good extented for your traffics. So you must make it look nice with a professionally view for the readers. As we see the title above which is “how to add sidebar to the wordpress page or single post“. The sidebar of your blog is very important it’s include the links or blogroll to your friend’s network, a links from your bookmarked sites or an interesting sites from an useful sites. It also include your archives, the categories, advertisements and many more.

I was trying to edit my default wordpress templates yesterday just to add my sidebar to the wordpress page or single post but I could make it align as it look in my homepage. I am new to web developing and web designing that’s why I am hardly to edit some css and php codes of my template. I keep on reading some different article on how can I fix this and here what I learn my sidebar to the single page is working for now.
Here’s what I did:

You need to change the column width from wide to narrow to make room for the sidebar. At the top line of your page.php or single.php file in your default theme, you may change the following code:

<div id=”content” class=”widecolumn”>
Change it to:
<div id=”content” class=”narrowcolumn”>

You must update also the single.php or page.php and put this code so that the sidebar will appear to the page or your single post.

</div>

<?php get_sidebar(); ?> (please add this code to the single.php or page.php)

<?php get_footer(); ?>

After this, don’t forget to save the file in the wordpress directory. Hope this would help for you guys! :)

  1. 9 Responses to “How to Add Sidebar to the WordPress page or Single post”

  2. By sean on Feb 15, 2009 | Reply

    Thanks! You solved my blog’s biggest problem!

  3. By Dave Hucker on Feb 27, 2009 | Reply

    You rock dude. Thanks for this posting, I update our blog. I’ll be using the added column to a list of electronic tools for local businesses.

    ps. I’m adding you to our blogroll!

  4. By ash on Mar 15, 2009 | Reply

    wow! it helps me a lot!! tnx.. more power…

  5. By Mr Misled on Dec 11, 2009 | Reply

    Thanks alot Eric!
    Exactly what I was looking for.

  6. By fulham Rendering on Sep 24, 2011 | Reply

    I savor, lead to I found just what I used to be taking a look for. You’ve ended my 4 day long hunt! God Bless you man. Have a great day. Bye

  7. By Bayswater Rendering on Sep 24, 2011 | Reply

    I don?t even understand how I ended up right here, but I thought this put up was good. I do not know who you are however definitely you are going to a well-known blogger when you are not already ;) Cheers!

  8. By full time cheap seo services on Sep 25, 2011 | Reply

    I was suggested this website via my cousin. I’m not positive whether or not this post is written via him as no one else recognise such particular approximately my problem. You are incredible! Thanks!

  9. By single black man on Oct 17, 2011 | Reply

    Thanks , I’ve recently been searching for info approximately this topic for a while and yours is the best I have came upon till now. However, what about the bottom line? Are you certain concerning the source?

  1. 1 Trackback(s)

  2. Dec 18, 2008: How to Add Sidebar to the Wordpress page or Single post | PHP-Blog.com

Post a Comment

Comments links could be nofollow free.

About Me

Hi I'm Eric Marantan from Dagupan City. Here I'll share my knowledge, discovery and experience related to my hobby and work. Most articles on this site are related to web design, short reviews, blogging tips, search engine optimization, e-commerce services and make money online. More

Eric MarantanSEO WorldCup at Busby Web Solutions

Want to subscribe?

 Subscribe in a reader Or, subscribe via email:
Enter your email address:  
Custom Search
Get Adobe Flash playerPlugin by wpburn.com wordpress themes