WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do I keep the side bar in posts? (17 posts)

  1. Kenny1264
    Member
    Posted 4 years ago #

    When ever someone looks at a post on my blog, the side bar isn't on that page.

    Anyway to have it there?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    You'd need to add it to your theme's single.php file. Have a look in index.php for something like <?php get_sidebar();?>. Note where it is placed within the code and copy that line to roughly the same position within your single.php file.

  3. Kenny1264
    Member
    Posted 4 years ago #

    I tried that and it didn't work, it just ended up on the bottom of the page.

  4. Kenny1264
    Member
    Posted 4 years ago #

    Anyone? I really need help with this!

  5. adamh
    Member
    Posted 4 years ago #

    If it's appearing at the bottom, it sounds like the width of your main content area plus the width of your sidebar is too wide for your theme.

    It's hard for a stranger to fix, as there are so many themes for WP. Which one are you using? Have you tried another (or the default theme)?

  6. Kenny1264
    Member
    Posted 4 years ago #

    I'm using this theme.

    http://wordpress.org/extend/themes/liasorangec

    I really like it so I don't want to have to change.

  7. iridiax
    Member
    Posted 4 years ago #

    Try a different theme, one that shows sidebars on the single post pages. Your current theme does not.

  8. Kenny1264
    Member
    Posted 4 years ago #

    You think I'm stupid? <__<

    I know that theme doesn't show them, that's why I'm asking how to make them show.

  9. Wee Beastie
    Member
    Posted 4 years ago #

    Post the code for your single.php file. Maybe we can help you better if we see what you are working with. This may also be solved using css. Go ahead and post the stylesheet as well.

  10. Kenny1264
    Member
    Posted 4 years ago #

    I posted the theme I use, so can't you get that from there? :S

  11. Wee Beastie
    Member
    Posted 4 years ago #

    nevermind dude. You don't really want help.

  12. Kenny1264
    Member
    Posted 4 years ago #

    What? :S

    I do need help with this. D:

  13. Kenny1264
    Member
    Posted 4 years ago #

    Now will you help me?

    single.php

    [huge chunk of code moderated - please use a pastebin or link to file]
  14. adamh
    Member
    Posted 4 years ago #

    I think what Wee Beastie is getting at is that it's a bit cheeky asking someone to install a new theme just to help you debug some html + css. Post some code, and maybe someone will be kind enough to help.

  15. Kenny1264
    Member
    Posted 4 years ago #

    I did post it, it's right above you.

  16. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    Especially when you consider that there are currently more than 850 themes in the WordPress Themes directory. Funnily enough, most people aren't intimately familiar with every one of them.

    @Kenny1264: You'll need to add <?php get_sidebar();?> where you want the sidebar to appear. Of course, then you have to build a sidebar template too.

    http://codex.wordpress.org/Theme_Development

    might start you in the right direction.

  17. Kenny1264
    Member
    Posted 4 years ago #

    I tried that before and it didn't work.

    And a friend of mine googled this and found this.

    http://www.ericmarantan.com/how-to-add-sidebar-in-the-wordpress-page-or-single-post/

    I needed to change

    <div id=”content” class=”widecolumn”>
    to
    <div id=”content” class=”narrowcolumn”>

    As well.

    Anyway, my problem is fixed now.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.