How Do You Add SideBar in WordPress Posts

Discussion in 'WordPress' started by dropship, Dec 8, 2008.

  1. #1
    I know the sidebar always shows up on the main page of your wordpress blog, but how do you add the sidebar on any posts you make to the blog?
     
    dropship, Dec 8, 2008 IP
  2. Ajucoolest

    Ajucoolest Well-Known Member

    Messages:
    616
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    128
    #2
    It is inbuilt in the theme.

    In the single.php you will need to insert the code of sidebar
    i.e.
    and your side bar will be included. Simple

    or is there anything else you want to ask.
     
    Ajucoolest, Dec 8, 2008 IP
  3. dropship

    dropship Active Member

    Messages:
    1,379
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #3
    That worked great.

    I added the line just before the <?php get_footer(); ?> but I'd like to have it placed just like it is on the home page of the blog (top right).

    Any idea where I should add this code?

    Also, how do I include the blogroll links to the sidebar?

    Thanks!
     
    dropship, Dec 8, 2008 IP
  4. Ajucoolest

    Ajucoolest Well-Known Member

    Messages:
    616
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    128
    #4
    Can I have a look at your theme , I can tell you more about it..
     
    Ajucoolest, Dec 8, 2008 IP
  5. kompyuter

    kompyuter Active Member

    Messages:
    116
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #5
    hello how are you.. if you have put the <?php get_sidebar(); ?> before the <?php get_footer(); ?>. it will display the sidebar to the single post or page but it is not align like it looks from your main page. Your problem is you must 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.

    Hope this would help for your problem now, you can check for more information here about how you can add sidebar to the wordpress page or single posts.

    Have a nice day and happy blogging! :)
     
    kompyuter, Dec 18, 2008 IP
  6. Fortumania

    Fortumania Active Member

    Messages:
    321
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #6
    It's very easy - you should go for the themes and then you should add in the design section the code for the side bar

    Fortumania
     
    Fortumania, Dec 21, 2008 IP
  7. dpsubi1

    dpsubi1 Notable Member

    Messages:
    9,318
    Likes Received:
    420
    Best Answers:
    0
    Trophy Points:
    280
    #7
    show us your theme then only we can get better idea... what you are talking about.
     
    dpsubi1, Mar 5, 2009 IP