Give help. Get help.

  • # April 29, 2009 at 10:41 am

    Can anyone tell me how to create a consistent sidebar on wordpress? You’ll see that is much shorter, I just want one sidebar for the entire site. I looked in the source code and I see most of the stuff isn’t in there, but I’m not sure how to change that.

    # April 29, 2009 at 11:49 am

    Not sure what you’re asking :?

    You just want the sidebar background to extend to the length of the main content? Then the simplest way is to repeat an image down the y-axis

    # April 29, 2009 at 5:43 pm

    That’s a good tip, but that wasn’t my point.

    I want the sidebar on every page to have the same amount of content.

    Look here: and The content differs on the sidebar, I want the content to be the same. I’m not talking about the length of the sidebar and the content div, no.

    Simply the same amount of content in the side bar on all pages.

    # April 29, 2009 at 6:31 pm


    There are two possibilities of what’s happening:

    1) Your sidebar.php file has php if statements that change the content depending on what page you are on. You’ll have to inspect the code.


    2) You’ve got two separate sidebar files that are being accessed from different types of pages. Sidebar.php is the normal sidebar file name, but you can have others like sidebar-*blah*.php where *blah* is any string.
    You should be able to just (back up and) delete these secondary file which will force WordPress to load the main sidebar.php file.

    I hope that helps,
    Ashton Sanders

    # April 30, 2009 at 2:51 am

    Ok, now we know what you want. :)

    Ashton is right. By the looks of it you are hacking the default theme, so if you have a good look at sidebar.php you will see that it is full of if statements such as

    < ?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    < ?php wp_list_bookmarks(); ?>

    Which basically means if you are on the front page or any other ‘page’ , as opposed to ‘posts’, ‘archives’, ‘categories’ etc. then show the blogroll.

    All you have to do is decide what you want in your sidebar and what you don’t want and then alter/remove those statements to suit.

    Hope that is more helpful than my last attempt. :D

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.